This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
[ JDK VERSION : 1.6.* ] I have a J2SE project with Test Packages. junit-4.5.jar is on the test class path (through appropriately setting the project properties). If I write @Test public void myTest() { int expectedNumberOfFoos = 4; int numberOfFoos = returnSomething(); assertEquals( "Wrong number of Foos", expectedNumberOfFoos, numberOfFoos ); } and then press Ctrl+Shift+I NetBeans is not able to resolve the assertEquals() method and does nothing instead of adding import static org.junit.Assert.assertEquals; Moreover, when I manually add the import statement and the cursor is at the pipe character in the snippet here, import static org.junit.Assert.| NB shows all overloads of all static methods in Assert as if I would be writing code in a method body. NB should only show the names of the static methods, no overloads and no parameters.
I could confirm this behavior with M2 and a version compiled from todays main-golden repository.
*** This issue has been marked as a duplicate of 89258 ***