Cleanup (unneeded test parameters)

This commit is contained in:
Roman Shevchenko
2015-07-02 16:06:52 +03:00
parent 2edb98e34d
commit 0888e688fd
3 changed files with 29 additions and 30 deletions

View File

@@ -23,41 +23,40 @@ import com.intellij.pom.java.LanguageLevel;
public class AnnotationsHighlightingTest extends LightDaemonAnalyzerTestCase {
private static final String BASE_PATH = "/codeInsight/daemonCodeAnalyzer/annotations";
public void testWrongPlace() { doTest(false); }
public void testNotValueNameOmitted() { doTest(false); }
public void testCannotFindMethod() { doTest(false); }
public void testIncompatibleType1() { doTest(false); }
public void testIncompatibleType2() { doTest(false); }
public void testIncompatibleType3() { doTest(false); }
public void testIncompatibleType4() { doTest(false); }
public void testIncompatibleType5() { doTest(false); }
public void testMissingAttribute() { doTest(false); }
public void testDuplicateAnnotation() { doTest(false); }
public void testNonConstantInitializer() { doTest(false); }
public void testInvalidType() { doTest(false); }
public void testInapplicable() { doTest(false); }
public void testDuplicateAttribute() { doTest(false); }
public void testDuplicateTarget() { doTest(false); }
public void testPingPongAnnotationTypesDependencies() { doTest(false); }
public void testClashMethods() { doTest(false); }
public void testDupMethods() { doTest(false); }
public void testPrivateInaccessibleConstant() { doTest(false); }
public void testWrongPlace() { doTest(); }
public void testNotValueNameOmitted() { doTest(); }
public void testCannotFindMethod() { doTest(); }
public void testIncompatibleType1() { doTest(); }
public void testIncompatibleType2() { doTest(); }
public void testIncompatibleType3() { doTest(); }
public void testIncompatibleType4() { doTest(); }
public void testIncompatibleType5() { doTest(); }
public void testMissingAttribute() { doTest(); }
public void testDuplicateAnnotation() { doTest(); }
public void testNonConstantInitializer() { doTest(); }
public void testInvalidType() { doTest(); }
public void testInapplicable() { doTest(); }
public void testDuplicateAttribute() { doTest(); }
public void testDuplicateTarget() { doTest(); }
public void testPingPongAnnotationTypesDependencies() { doTest(); }
public void testClashMethods() { doTest(); }
public void testDupMethods() { doTest(); }
public void testPrivateInaccessibleConstant() { doTest(); }
public void testInvalidPackageAnnotationTarget() { doTest(BASE_PATH + "/package-info.java", false, false); }
public void testPackageAnnotationNotInPackageInfo() { doTest(); }
public void testInvalidPackageAnnotationTarget() { doTest(BASE_PATH + "/" + getTestName(true) + "/package-info.java", false, false); }
public void testPackageAnnotationNotInPackageInfo() { doTest(BASE_PATH + "/" + getTestName(true) + "/notPackageInfo.java", false, false); }
public void testTypeAnnotations() { doTest8(); }
public void testRepeatable() { doTest8(); }
public void testEnumValues() { doTest8(); }
public void testReceiverParameters() { doTest8(); }
public void testTypeAnnotations() { doTest8(false); }
public void testRepeatable() { doTest8(false); }
public void testEnumValues() { doTest8(false); }
public void testReceiverParameters() { doTest8(false); }
private void doTest(boolean checkWarnings) {
private void doTest() {
setLanguageLevel(LanguageLevel.JDK_1_7);
doTest(BASE_PATH + "/" + getTestName(true) + ".java", checkWarnings, false);
doTest(BASE_PATH + "/" + getTestName(true) + ".java", false, false);
}
private void doTest8(boolean checkWarnings) {
private void doTest8() {
setLanguageLevel(LanguageLevel.JDK_1_8);
doTest(BASE_PATH + "/" + getTestName(true) + ".java", checkWarnings, false);
doTest(BASE_PATH + "/" + getTestName(true) + ".java", false, false);
}
}