提交 02d3d978 编写于 作者: D Denis Zharkov

Move JSR-305 tests to one directory and strip common name prefix

上级 8a66919a
...@@ -48,10 +48,19 @@ public class ForeignJava8AnnotationsTestGenerated extends AbstractForeignJava8An ...@@ -48,10 +48,19 @@ public class ForeignJava8AnnotationsTestGenerated extends AbstractForeignJava8An
doTest(fileName); doTest(fileName);
} }
@TestMetadata("springNullableWithTypeUse.kt") @TestMetadata("compiler/testData/foreignAnnotationsJava8/tests/jsr305")
public void testSpringNullableWithTypeUse() throws Exception { @TestDataPath("$PROJECT_ROOT")
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/foreignAnnotationsJava8/tests/springNullableWithTypeUse.kt"); @RunWith(JUnit3RunnerWithInners.class)
doTest(fileName); public static class Jsr305 extends AbstractForeignJava8AnnotationsTest {
public void testAllFilesPresentInJsr305() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/foreignAnnotationsJava8/tests/jsr305"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("springNullableWithTypeUse.kt")
public void testSpringNullableWithTypeUse() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/foreignAnnotationsJava8/tests/jsr305/springNullableWithTypeUse.kt");
doTest(fileName);
}
} }
@TestMetadata("compiler/testData/foreignAnnotationsJava8/tests/typeEnhancement") @TestMetadata("compiler/testData/foreignAnnotationsJava8/tests/typeEnhancement")
......
...@@ -48,10 +48,19 @@ public class JavacForeignJava8AnnotationsTestGenerated extends AbstractJavacFore ...@@ -48,10 +48,19 @@ public class JavacForeignJava8AnnotationsTestGenerated extends AbstractJavacFore
doTest(fileName); doTest(fileName);
} }
@TestMetadata("springNullableWithTypeUse.kt") @TestMetadata("compiler/testData/foreignAnnotationsJava8/tests/jsr305")
public void testSpringNullableWithTypeUse() throws Exception { @TestDataPath("$PROJECT_ROOT")
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/foreignAnnotationsJava8/tests/springNullableWithTypeUse.kt"); @RunWith(JUnit3RunnerWithInners.class)
doTest(fileName); public static class Jsr305 extends AbstractJavacForeignJava8AnnotationsTest {
public void testAllFilesPresentInJsr305() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/foreignAnnotationsJava8/tests/jsr305"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
}
@TestMetadata("springNullableWithTypeUse.kt")
public void testSpringNullableWithTypeUse() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/foreignAnnotationsJava8/tests/jsr305/springNullableWithTypeUse.kt");
doTest(fileName);
}
} }
@TestMetadata("compiler/testData/foreignAnnotationsJava8/tests/typeEnhancement") @TestMetadata("compiler/testData/foreignAnnotationsJava8/tests/typeEnhancement")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册