mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-06 10:07:41 +07:00
51 lines
1.0 KiB
Java
51 lines
1.0 KiB
Java
package com.intellij.codeInspection;
|
|
|
|
import com.intellij.JavaTestUtil;
|
|
import com.intellij.codeInspection.defUse.DefUseInspection;
|
|
import com.intellij.testFramework.InspectionTestCase;
|
|
|
|
public class DefUseTest extends InspectionTestCase {
|
|
@Override
|
|
protected String getTestDataPath() {
|
|
return JavaTestUtil.getJavaTestDataPath() + "/inspection";
|
|
}
|
|
|
|
private void doTest() throws Exception {
|
|
doTest("defUse/" + getTestName(false), new DefUseInspection());
|
|
}
|
|
|
|
|
|
public void testSCR5144() throws Exception {
|
|
doTest();
|
|
}
|
|
|
|
public void testSCR6843() throws Exception {
|
|
doTest();
|
|
}
|
|
|
|
public void testunusedVariable() throws Exception {
|
|
doTest();
|
|
}
|
|
|
|
public void testarrayIndexUsages() throws Exception {
|
|
doTest();
|
|
}
|
|
/* TODO:
|
|
public void testSCR28019() throws Exception {
|
|
doTest();
|
|
}
|
|
*/
|
|
|
|
public void testSCR40364() throws Exception {
|
|
doTest();
|
|
}
|
|
|
|
public void testArrayLength() throws Exception {
|
|
doTest();
|
|
}
|
|
|
|
public void testUsedInArrayInitializer() throws Exception {
|
|
doTest();
|
|
}
|
|
}
|