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(false), 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();
  }
}

@@ -632,20 +632,19 @@
 estName(
-fals
+tru
 e), tool
@@ -673,33 +673,33 @@
 public void test
-s
+S
 uperCall() throw
@@ -745,25 +745,25 @@
 ic void test
-s
+S
 uperCallByRa
@@ -828,17 +828,17 @@
 oid test
-e
+E
 xternalO
@@ -1043,17 +1043,17 @@
 oid test
-s
+S
 uperFrom

fix case of testdata