blob: 9f1890acbf0f1f5c67fb25569db724ec26c8d25b [file] [log] [blame]
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);
}
}