mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-10 18:09:38 +07:00
35 lines
991 B
Java
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);
|
|
}
|
|
}
|