Project: JDT
Bug 373788 Compilation errors when you create new JUnit test case
Reported: 2012-03-09 08:54:07 | Status: resolved fixed

Build Identifier: M20110909-1335 When you create new JUnit test case called "Test" you receive compilation errors. There is following generate class: import static org.junit.Assert.*; import org.junit.Test; public class Test { @Test public void test() { fail("Not yet implemented"); } } The error message: Cannot convert Test to Annotation (in the line with @Test) It should be @org.junit.Test annotation used instead of @Test Reproducible: Always Steps to Reproduce: 1. File->New->Junit Test Case... 2. Set the class name to Test

Files changed in fix:
org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestCaseWizardPageOne.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewTypeWizardPage.java