You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Bailey Campbell (JIRA)" <ji...@apache.org> on 2019/03/09 20:06:00 UTC
[jira] [Created] (NETBEANS-2225) Create/Update JUnit tests fail
Bailey Campbell created NETBEANS-2225:
-----------------------------------------
Summary: 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
*[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 [Report issue ↗|https://issues.apache.org/jira/secure/CreateIssue!default.jspa?pid=12320634&issuetype=1&summary=Generation%20of%20method%20access%20level%20specific%20tests]
* *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