blob: dc929f345c4cd7ba29f6ee49ff210d164eef8152 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
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();
}
}
|