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.
Put JUnit 4 in classpath. class X { @Test void foo() {} } Try Fix Imports, or the corresponding hint. junit.framework.Test is offered as a choice (in fact the preferred choice), even though it is not an annotation! Clearly the IDE should have known you meant org.junit.Test.
*** This issue has been marked as a duplicate of 74717 ***