Files
openide/java/java-tests/testSrc/com/intellij/codeInspection/SameParameterValueTest.java
2009-09-28 20:07:31 +04:00

35 lines
991 B
Java

package com.intellij.codeInspection;
import com.intellij.JavaTestUtil;
import com.intellij.codeInspection.sameParameterValue.SameParameterValueInspection;
import com.intellij.testFramework.InspectionTestCase;
public class SameParameterValueTest extends InspectionTestCase {
private final SameParameterValueInspection myTool = new SameParameterValueInspection();
@Override
protected String getTestDataPath() {
return JavaTestUtil.getJavaTestDataPath() + "/inspection";
}
private String getTestDir() {
return "sameParameterValue/" + getTestName(true);
}
public void testEntryPoint() throws Exception {
doTest(getTestDir(), myTool, false, true);
}
public void testWithoutDeadCode() throws Exception {
doTest(getTestDir(), myTool, false, false);
}
public void testVarargs() throws Exception {
doTest(getTestDir(), myTool, false, true);
}
public void testSimpleVararg() throws Exception {
doTest(getTestDir(), myTool, false, true);
}
}