You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Geertjan Wielenga (JIRA)" <ji...@apache.org> on 2019/03/09 20:09:00 UTC
[jira] [Commented] (NETBEANS-2225) Create/Update JUnit tests fail
[ https://issues.apache.org/jira/browse/NETBEANS-2225?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16788786#comment-16788786 ]
Geertjan Wielenga commented on NETBEANS-2225:
---------------------------------------------
Not sure if one would want OLD tests to be removed?
> Create/Update JUnit tests fail
> ------------------------------
>
> Key: NETBEANS-2225
> URL: https://issues.apache.org/jira/browse/NETBEANS-2225
> Project: NetBeans
> Issue Type: Bug
> Components: java - JUnit
> Affects Versions: 11.0
> Reporter: Bailey Campbell
> Priority: Major
>
> *[Generation of method access level specific tests|http://netbeans-vm.apache.org/synergy/client/app/index.html#/case/5957/suite/2370/v/1]* Test Case
> * *Steps:*
> ** For the project *JUnitSampleProjectAnt*:
> ### In the *Projects* panel, under *Source Packages > methodaccess* double click the file *Methods.java* to open it in the editor.
> ### From the *Tools* menu select *Create/Update Tests*.
> ### In the *Create/Update Tests* dialog there are three checkboxes named:
> **** *Public*
> **** *Protected*
> **** *Package Private*
> * If, and only if, *Public* was checked then method *testPublicMethod()* will be generated.
> * If, and only if, *Protected* was checked then method *testProtectedMethod()* will be generated.
> * If, and only if, *Package Private* was checked then method *testPackagePrivateMethod()* will be generated.
> *Acutal Results:*
> If you only select *Public* the testPublicMethod() is created, if you then unselect *Public* and select *Protected* the testProtectedMethod() is created but the testPublcMethod() remains.
> If you delete the MethodsT.java file between tests everything works fine. In general it appears the tests are not updated, ie new tests are added but old tests are not removed.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
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