mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
test++
This commit is contained in:
+6
-1
@@ -13,6 +13,7 @@ import com.intellij.psi.PsiParameter;
|
||||
import com.intellij.psi.search.GlobalSearchScope;
|
||||
import com.intellij.refactoring.introduceparameterobject.IntroduceParameterObjectProcessor;
|
||||
import com.intellij.refactoring.util.ParameterTablePanel;
|
||||
import com.intellij.JavaTestUtil;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
@@ -20,6 +21,10 @@ public class IntroduceParameterObjectTest extends MultiFileTestCase{
|
||||
protected String getTestRoot() {
|
||||
return "/refactoring/introduceParameterObject/";
|
||||
}
|
||||
@Override
|
||||
protected String getTestDataPath() {
|
||||
return JavaTestUtil.getJavaTestDataPath();
|
||||
}
|
||||
|
||||
private void doTest() throws Exception {
|
||||
doTest(false, false);
|
||||
@@ -44,7 +49,7 @@ public class IntroduceParameterObjectTest extends MultiFileTestCase{
|
||||
});
|
||||
}
|
||||
|
||||
private ParameterTablePanel.VariableData[] generateParams(final PsiMethod method) {
|
||||
private static ParameterTablePanel.VariableData[] generateParams(final PsiMethod method) {
|
||||
final PsiParameter[] parameters = method.getParameterList().getParameters();
|
||||
|
||||
final ParameterTablePanel.VariableData[] datas = new ParameterTablePanel.VariableData[parameters.length];
|
||||
Reference in New Issue
Block a user