mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
notify about refs to foreign types (IDEA-145186)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
+3
-1
@@ -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(); }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user