mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-05 18:50:54 +07:00
53 lines
1.2 KiB
Java
53 lines
1.2 KiB
Java
package com.intellij.codeInspection;
|
|
|
|
import com.intellij.JavaTestUtil;
|
|
import com.intellij.codeInspection.emptyMethod.EmptyMethodInspection;
|
|
import com.intellij.testFramework.InspectionTestCase;
|
|
|
|
/**
|
|
* @author max
|
|
*/
|
|
public class EmptyMethodTest extends InspectionTestCase {
|
|
@Override
|
|
protected String getTestDataPath() {
|
|
return JavaTestUtil.getJavaTestDataPath() + "/inspection";
|
|
}
|
|
|
|
private void doTest() throws Exception {
|
|
doTest(false);
|
|
}
|
|
|
|
private void doTest(final boolean checkRange) throws Exception {
|
|
final EmptyMethodInspection tool = new EmptyMethodInspection();
|
|
doTest("emptyMethod/" + getTestName(true), tool, checkRange);
|
|
}
|
|
|
|
public void testSuperCall() throws Exception {
|
|
doTest();
|
|
}
|
|
|
|
public void testSuperCallByRange() throws Exception {
|
|
doTest(true);
|
|
}
|
|
|
|
public void testExternalOverride() throws Exception {
|
|
doTest();
|
|
}
|
|
|
|
public void testSCR8321() throws Exception {
|
|
doTest();
|
|
}
|
|
|
|
public void testInAnonymous() throws Exception {
|
|
doTest(true);
|
|
}
|
|
|
|
public void testSuperFromAnotherPackageCall() throws Exception {
|
|
doTest();
|
|
}
|
|
|
|
public void testSuperWithoutSync() throws Exception {
|
|
doTest();
|
|
}
|
|
}
|