add junit to classpath when annotation FQN is used (IDEA-64909)

This commit is contained in:
anna
2011-02-02 16:33:18 +01:00
parent f222c002ea
commit 431aaa09b8
3 changed files with 34 additions and 7 deletions
@@ -0,0 +1,9 @@
// "Add 'junit.jar' to classpath" "true"
package x;
public class DoTest4junit {
@org.ju<caret>nit.Test
void f() {
}
}
@@ -133,6 +133,10 @@ public class OrderEntryTest extends DaemonAnalyzerTestCase {
doTest("A/src/x/DoTest4.java");
}
public void testAddJunit4inJunit() throws Exception {
doTest("A/src/x/DoTest4junit.java");
}
public void testExistingJunit() throws Exception {
doTest("B/src/y/AddExistingJunit.java");
}