notify about refs to foreign types (IDEA-145186)

This commit is contained in:
Anna Kozlova
2015-09-16 18:53:29 +03:00
parent dc989c3b6b
commit c26cc82486
7 changed files with 35 additions and 48 deletions
@@ -0,0 +1,3 @@
<?xml version="1.0" encoding="UTF-8"?>
<problems/>
@@ -0,0 +1,4 @@
import junit.framework.TestCase;
public class MyTest {
TestCase myTestCase;
}
@@ -49,7 +49,7 @@ public class UnusedLibraryInspectionTest extends InspectionTestCase {
@Override
protected void setupRootModel(String testDir, VirtualFile[] sourceDir, String sdkName) {
super.setupRootModel(testDir, sourceDir, sdkName);
PsiTestUtil.addLibrary(getModule(), "JUnit", getTestDataPath() + "/junit.jar");
PsiTestUtil.addLibrary(getModule(), "JUnit", getTestDataPath(), "/junit.jar");
}
private void doTest() throws Exception {
@@ -63,4 +63,6 @@ public class UnusedLibraryInspectionTest extends InspectionTestCase {
}
public void testSimple() throws Exception { doTest(); }
public void testUsedJunit() throws Exception { doTest(); }
public void testUsedJunitFromField() throws Exception { doTest(); }
}