mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-20 13:31:28 +07:00
Cleanup (sane testdata file name; formatting)
This commit is contained in:
@@ -24,7 +24,6 @@ import org.jetbrains.annotations.NotNull;
|
||||
* @author ven
|
||||
*/
|
||||
public class DelegateMethodsTest extends LightCodeInsightTestCase {
|
||||
|
||||
private static final String BASE_PATH = "/codeInsight/delegateMethods/";
|
||||
|
||||
@NotNull
|
||||
@@ -33,34 +32,17 @@ public class DelegateMethodsTest extends LightCodeInsightTestCase {
|
||||
return JavaTestUtil.getJavaTestDataPath();
|
||||
}
|
||||
|
||||
public void testMethodWithJavadoc () {
|
||||
doTest("1");
|
||||
}
|
||||
public void testMethodWithJavadoc() { doTest(); }
|
||||
public void testStaticMemberWithNonStaticField() { doTest(); }
|
||||
public void testTypeParam() { doTest(); }
|
||||
public void testExistingMethodWithAnnotation() { doTest(); }
|
||||
public void testDelegateToContainingClassField() { doTest(); }
|
||||
public void testDelegateFromStaticClassField() { doTest(); }
|
||||
|
||||
public void testStaticMemberWithNonStaticField() {
|
||||
doTest();
|
||||
}
|
||||
|
||||
public void testTypeParam() {
|
||||
doTest();
|
||||
}
|
||||
|
||||
public void testExistingMethodWithAnnotation() {
|
||||
doTest();
|
||||
}
|
||||
|
||||
public void testDelegateToContainingClassField() {
|
||||
doTest();
|
||||
}
|
||||
|
||||
public void testDelegateFromStaticClassField() {
|
||||
doTest();
|
||||
}
|
||||
|
||||
public void testCopyJavadoc() {
|
||||
String testName = getTestName(false);
|
||||
configureByFile(BASE_PATH + "before" + testName + ".java");
|
||||
final GenerateDelegateHandler handler = new GenerateDelegateHandler();
|
||||
GenerateDelegateHandler handler = new GenerateDelegateHandler();
|
||||
try {
|
||||
handler.setToCopyJavaDoc(true);
|
||||
handler.invoke(getProject(), getEditor(), getFile());
|
||||
@@ -70,62 +52,24 @@ public class DelegateMethodsTest extends LightCodeInsightTestCase {
|
||||
}
|
||||
checkResultByFile(BASE_PATH + "after" + testName + ".java");
|
||||
}
|
||||
|
||||
public void testSuperSubstitution() {
|
||||
doTest();
|
||||
}
|
||||
|
||||
public void testCopyAnnotationWithParams() {
|
||||
doTest();
|
||||
}
|
||||
|
||||
public void testMultipleOverrideAnnotations() {
|
||||
doTest();
|
||||
}
|
||||
|
||||
public void testStripSuppressWarningsAnnotation() {
|
||||
doTest();
|
||||
}
|
||||
|
||||
public void testDoNotOverrideFinal() {
|
||||
doTest();
|
||||
}
|
||||
|
||||
public void testAllowDelegateToFinal() {
|
||||
doTest();
|
||||
}
|
||||
|
||||
public void testDelegateWithSubstitutionOverrides() {
|
||||
doTest();
|
||||
}
|
||||
|
||||
public void testDelegateWithSubstitutionNoOverrides() {
|
||||
doTest();
|
||||
}
|
||||
|
||||
public void testSingleField() {
|
||||
doTest();
|
||||
}
|
||||
|
||||
public void testInsideLambdaWithNonInferredTypeParameters() {
|
||||
doTest();
|
||||
}
|
||||
|
||||
public void testTypeUseAnnotationsInReturnType() {
|
||||
doTest();
|
||||
}
|
||||
|
||||
public void testPreserveEllipsisType() {
|
||||
doTest();
|
||||
}
|
||||
public void testSuperSubstitution() { doTest(); }
|
||||
public void testCopyAnnotationWithParams() { doTest(); }
|
||||
public void testMultipleOverrideAnnotations() { doTest(); }
|
||||
public void testStripSuppressWarningsAnnotation() { doTest(); }
|
||||
public void testDoNotOverrideFinal() { doTest(); }
|
||||
public void testAllowDelegateToFinal() { doTest(); }
|
||||
public void testDelegateWithSubstitutionOverrides() { doTest(); }
|
||||
public void testDelegateWithSubstitutionNoOverrides() { doTest(); }
|
||||
public void testSingleField() { doTest(); }
|
||||
public void testInsideLambdaWithNonInferredTypeParameters() { doTest(); }
|
||||
public void testTypeUseAnnotationsInReturnType() { doTest(); }
|
||||
public void testPreserveEllipsisType() { doTest(); }
|
||||
|
||||
private void doTest() {
|
||||
doTest(getTestName(false));
|
||||
}
|
||||
|
||||
private void doTest(String testName) {
|
||||
configureByFile(BASE_PATH + "before" + testName+ ".java");
|
||||
String testName = getTestName(false);
|
||||
configureByFile(BASE_PATH + "before" + testName + ".java");
|
||||
new GenerateDelegateHandler().invoke(getProject(), getEditor(), getFile());
|
||||
checkResultByFile(BASE_PATH + "after" + testName + ".java");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user