lighten up, remove redundant language level setting

This commit is contained in:
Dmitry Jemerov
2009-09-10 21:47:55 +04:00
parent b7059665c4
commit fc3eb6dd3d
9 changed files with 27 additions and 80 deletions

View File

@@ -1,15 +1,15 @@
package com.intellij.refactoring;
import com.intellij.JavaTestUtil;
import com.intellij.codeInsight.CodeInsightTestCase;
import com.intellij.openapi.projectRoots.Sdk;
import com.intellij.openapi.projectRoots.impl.JavaSdkImpl;
import com.intellij.refactoring.anonymousToInner.AnonymousToInnerHandler;
import com.intellij.testFramework.LightCodeInsightTestCase;
/**
* @author yole
*/
public class AnonymousToInnerTest extends CodeInsightTestCase {
public class AnonymousToInnerTest extends LightCodeInsightTestCase {
private static final String TEST_ROOT = "/refactoring/anonymousToInner/";
@Override
@@ -18,7 +18,7 @@ public class AnonymousToInnerTest extends CodeInsightTestCase {
}
@Override
protected Sdk getTestProjectJdk() {
protected Sdk getProjectJDK() {
return JavaSdkImpl.getMockJdk15("java 1.5");
}
@@ -38,7 +38,7 @@ public class AnonymousToInnerTest extends CodeInsightTestCase {
};
handler.invoke(myProject, myEditor, myFile, null);
handler.invoke(getProject(), myEditor, myFile, null);
checkResultByFile(TEST_ROOT + getTestName(true) + "_after.java");
}
}