Cleanup (sane testdata file name; formatting)

This commit is contained in:
Roman Shevchenko
2017-09-01 13:01:53 +03:00
parent 977d6617f0
commit f1a2c0b8e1
3 changed files with 22 additions and 78 deletions

View File

@@ -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");
}
}
}