Product Version: NetBeans IDE Dev (Build 200908171401)
Java: 1.6.0_15; Java HotSpot(TM) Client VM 14.1-b02
System: Windows XP version 5.1 running on x86; Cp1250; cs_CZ (nb)
I have a Java project with four classes in a package: public class, package private class, abstract class and Exception
When I select the containing package and invoke Tools - Create JUnit test, no matter which options I check under the
"Class Types" I still get four tests generated. One for each class.
Maybe I just get it wrong. According to Help you should be able to select which class types to generate test classes
for. However it does not seem to work.
It is valid issue.
All options "Code Generation / Class Types" in the "Create Tests" dialog do not work.
It is regression after http://hg.netbeans.org/main/rev/1c5ab8f7d046
sets to zero all bits in the variable "result" excluding a bit returned by the method TestabilityResult.NO_TESTEABLE_METHODS.getReasonValue(), i.e 0x2.
Hence, all classes are testable if they have testable methods, and it doesn't depend on states of the checkboxes in the "Class Types" group of the "Create Tests" dialog.
This bug a relation to the Bug 165914
See also bug 165914