You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Bartosz Tomasik (Jira)" <ji...@apache.org> on 2019/09/09 05:26:00 UTC
[jira] [Commented] (NETBEANS-2259) Create/Update Tests generates
duplicate methods
[ https://issues.apache.org/jira/browse/NETBEANS-2259?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16925367#comment-16925367 ]
Bartosz Tomasik commented on NETBEANS-2259:
-------------------------------------------
I am able to replicate this too. However there's something strange about this - this happens only once per class: I do open project, select class and generate tests -> they are broken, but if I delete that test and re-create it again, it's correct.
> Create/Update Tests generates duplicate methods
> -----------------------------------------------
>
> Key: NETBEANS-2259
> URL: https://issues.apache.org/jira/browse/NETBEANS-2259
> Project: NetBeans
> Issue Type: Bug
> Components: java - JUnit
> Affects Versions: Next
> Reporter: Ralph Benjamin Ruijs
> Priority: Major
>
> Steps to reproduce:
> # create a new java maven application
> # add a new class with some methods
> # press ctrl+alt+t to open the Create/Update Tests dialog
> # Leave everything selected end press enter
> Expected:
> a working junit test class
> Actual:
> a junit test class with methods duplicated, once annotated with fqn and once with simple name
>
> *Product Version:* Apache NetBeans IDE Dev (Build 20190313-3f5ea2b646bb)
> *Updates:* Updates available
> *Java:* 12; OpenJDK 64-Bit Server VM 12+33
> *Runtime:* OpenJDK Runtime Environment 12+33
> *System:* Linux version 5.0.2-arch1-1-ARCH running on amd64; UTF-8; en_US (nb)
> *User directory:* /home/ralph/work/incubator-netbeans/nbbuild/testuserdir
> *Cache directory:* /home/ralph/work/incubator-netbeans/nbbuild/testuserdir/var/cache
--
This message was sent by Atlassian Jira
(v8.3.2#803003)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists