[Test] Regenerate tests after two previous commits
This commit is contained in:
committed by
Space Team
parent
d9beae0556
commit
acf2296590
+228
-228
@@ -19,242 +19,242 @@ import java.util.regex.Pattern;
|
||||
@SuppressWarnings("all")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class LoadJava8TestGenerated extends AbstractLoadJava8Test {
|
||||
@TestMetadata("compiler/testData/loadJava8/compiledJava")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class CompiledJava extends AbstractLoadJava8Test {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTestCompiledJava, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInCompiledJava() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava8/compiledJava"), Pattern.compile("^(.+)\\.java$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("InnerClassTypeAnnotation.java")
|
||||
public void testInnerClassTypeAnnotation() throws Exception {
|
||||
runTest("compiler/testData/loadJava8/compiledJava/InnerClassTypeAnnotation.java");
|
||||
}
|
||||
|
||||
@TestMetadata("MapRemove.java")
|
||||
public void testMapRemove() throws Exception {
|
||||
runTest("compiler/testData/loadJava8/compiledJava/MapRemove.java");
|
||||
}
|
||||
|
||||
@TestMetadata("ParameterNames.java")
|
||||
public void testParameterNames() throws Exception {
|
||||
runTest("compiler/testData/loadJava8/compiledJava/ParameterNames.java");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/loadJava8/compiledJava/typeParameterAnnotations")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class TypeParameterAnnotations extends AbstractLoadJava8Test {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTestCompiledJava, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInTypeParameterAnnotations() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava8/compiledJava/typeParameterAnnotations"), Pattern.compile("^(.+)\\.java$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("Basic.java")
|
||||
public void testBasic() throws Exception {
|
||||
runTest("compiler/testData/loadJava8/compiledJava/typeParameterAnnotations/Basic.java");
|
||||
}
|
||||
|
||||
@TestMetadata("Basic_DisabledImprovements.java")
|
||||
public void testBasic_DisabledImprovements() throws Exception {
|
||||
runTest("compiler/testData/loadJava8/compiledJava/typeParameterAnnotations/Basic_DisabledImprovements.java");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/loadJava8/compiledJava/typeUseAnnotations")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class TypeUseAnnotations extends AbstractLoadJava8Test {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTestCompiledJava, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInTypeUseAnnotations() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava8/compiledJava/typeUseAnnotations"), Pattern.compile("^(.+)\\.java$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("BaseClassTypeArguments.java")
|
||||
public void testBaseClassTypeArguments() throws Exception {
|
||||
runTest("compiler/testData/loadJava8/compiledJava/typeUseAnnotations/BaseClassTypeArguments.java");
|
||||
}
|
||||
|
||||
@TestMetadata("Basic.java")
|
||||
public void testBasic() throws Exception {
|
||||
runTest("compiler/testData/loadJava8/compiledJava/typeUseAnnotations/Basic.java");
|
||||
}
|
||||
|
||||
@TestMetadata("Basic_DisabledImprovements.java")
|
||||
public void testBasic_DisabledImprovements() throws Exception {
|
||||
runTest("compiler/testData/loadJava8/compiledJava/typeUseAnnotations/Basic_DisabledImprovements.java");
|
||||
}
|
||||
|
||||
@TestMetadata("ClassTypeParameterBounds.java")
|
||||
public void testClassTypeParameterBounds() throws Exception {
|
||||
runTest("compiler/testData/loadJava8/compiledJava/typeUseAnnotations/ClassTypeParameterBounds.java");
|
||||
}
|
||||
|
||||
@TestMetadata("MethodReceiver.java")
|
||||
public void testMethodReceiver() throws Exception {
|
||||
runTest("compiler/testData/loadJava8/compiledJava/typeUseAnnotations/MethodReceiver.java");
|
||||
}
|
||||
|
||||
@TestMetadata("MethodTypeParameterBounds.java")
|
||||
public void testMethodTypeParameterBounds() throws Exception {
|
||||
runTest("compiler/testData/loadJava8/compiledJava/typeUseAnnotations/MethodTypeParameterBounds.java");
|
||||
}
|
||||
|
||||
@TestMetadata("ReturnType.java")
|
||||
public void testReturnType() throws Exception {
|
||||
runTest("compiler/testData/loadJava8/compiledJava/typeUseAnnotations/ReturnType.java");
|
||||
}
|
||||
|
||||
@TestMetadata("ValueArguments.java")
|
||||
public void testValueArguments() throws Exception {
|
||||
runTest("compiler/testData/loadJava8/compiledJava/typeUseAnnotations/ValueArguments.java");
|
||||
}
|
||||
}
|
||||
@TestMetadata("compiler/testData/loadJava8/compiledJava")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class CompiledJava extends AbstractLoadJava8Test {
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTestCompiledJava, this, testDataFilePath);
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/loadJava8/compiledKotlinWithStdlib")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class CompiledKotlinWithStdlib extends AbstractLoadJava8Test {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTestCompiledKotlinWithStdlib, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInCompiledKotlinWithStdlib() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava8/compiledKotlinWithStdlib"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/loadJava8/compiledKotlinWithStdlib/annotations")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Annotations extends AbstractLoadJava8Test {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTestCompiledKotlinWithStdlib, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInAnnotations() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava8/compiledKotlinWithStdlib/annotations"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("RepeatableAnnotationWithExplicitContainer.kt")
|
||||
public void testRepeatableAnnotationWithExplicitContainer() throws Exception {
|
||||
runTest("compiler/testData/loadJava8/compiledKotlinWithStdlib/annotations/RepeatableAnnotationWithExplicitContainer.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("RepeatableAnnotationWithImplicitContainer.kt")
|
||||
public void testRepeatableAnnotationWithImplicitContainer() throws Exception {
|
||||
runTest("compiler/testData/loadJava8/compiledKotlinWithStdlib/annotations/RepeatableAnnotationWithImplicitContainer.kt");
|
||||
}
|
||||
}
|
||||
public void testAllFilesPresentInCompiledJava() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava8/compiledJava"), Pattern.compile("^(.+)\\.java$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/loadJava8/sourceJava")
|
||||
@TestMetadata("InnerClassTypeAnnotation.java")
|
||||
public void testInnerClassTypeAnnotation() {
|
||||
runTest("compiler/testData/loadJava8/compiledJava/InnerClassTypeAnnotation.java");
|
||||
}
|
||||
|
||||
@TestMetadata("MapRemove.java")
|
||||
public void testMapRemove() {
|
||||
runTest("compiler/testData/loadJava8/compiledJava/MapRemove.java");
|
||||
}
|
||||
|
||||
@TestMetadata("ParameterNames.java")
|
||||
public void testParameterNames() {
|
||||
runTest("compiler/testData/loadJava8/compiledJava/ParameterNames.java");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/loadJava8/compiledJava/typeParameterAnnotations")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class SourceJava extends AbstractLoadJava8Test {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTestSourceJava, this, testDataFilePath);
|
||||
}
|
||||
public static class TypeParameterAnnotations extends AbstractLoadJava8Test {
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTestCompiledJava, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInSourceJava() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava8/sourceJava"), Pattern.compile("^(.+)\\.java$"), null, true);
|
||||
}
|
||||
public void testAllFilesPresentInTypeParameterAnnotations() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava8/compiledJava/typeParameterAnnotations"), Pattern.compile("^(.+)\\.java$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("MapRemove.java")
|
||||
public void testMapRemove() throws Exception {
|
||||
runTest("compiler/testData/loadJava8/sourceJava/MapRemove.java");
|
||||
}
|
||||
@TestMetadata("Basic.java")
|
||||
public void testBasic() {
|
||||
runTest("compiler/testData/loadJava8/compiledJava/typeParameterAnnotations/Basic.java");
|
||||
}
|
||||
|
||||
@TestMetadata("TypeParameterAnnotations.java")
|
||||
public void testTypeParameterAnnotations() throws Exception {
|
||||
runTest("compiler/testData/loadJava8/sourceJava/TypeParameterAnnotations.java");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/loadJava8/sourceJava/typeParameterAnnotations")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class TypeParameterAnnotations extends AbstractLoadJava8Test {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTestSourceJava, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInTypeParameterAnnotations() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava8/sourceJava/typeParameterAnnotations"), Pattern.compile("^(.+)\\.java$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("Basic.java")
|
||||
public void testBasic() throws Exception {
|
||||
runTest("compiler/testData/loadJava8/sourceJava/typeParameterAnnotations/Basic.java");
|
||||
}
|
||||
|
||||
@TestMetadata("Basic_DisabledImprovements.java")
|
||||
public void testBasic_DisabledImprovements() throws Exception {
|
||||
runTest("compiler/testData/loadJava8/sourceJava/typeParameterAnnotations/Basic_DisabledImprovements.java");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/loadJava8/sourceJava/typeUseAnnotations")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class TypeUseAnnotations extends AbstractLoadJava8Test {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTestSourceJava, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInTypeUseAnnotations() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava8/sourceJava/typeUseAnnotations"), Pattern.compile("^(.+)\\.java$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("BaseClassTypeArguments.java")
|
||||
public void testBaseClassTypeArguments() throws Exception {
|
||||
runTest("compiler/testData/loadJava8/sourceJava/typeUseAnnotations/BaseClassTypeArguments.java");
|
||||
}
|
||||
|
||||
@TestMetadata("Basic.java")
|
||||
public void testBasic() throws Exception {
|
||||
runTest("compiler/testData/loadJava8/sourceJava/typeUseAnnotations/Basic.java");
|
||||
}
|
||||
|
||||
@TestMetadata("Basic_DisabledImprovements.java")
|
||||
public void testBasic_DisabledImprovements() throws Exception {
|
||||
runTest("compiler/testData/loadJava8/sourceJava/typeUseAnnotations/Basic_DisabledImprovements.java");
|
||||
}
|
||||
|
||||
@TestMetadata("ClassTypeParameterBounds.java")
|
||||
public void testClassTypeParameterBounds() throws Exception {
|
||||
runTest("compiler/testData/loadJava8/sourceJava/typeUseAnnotations/ClassTypeParameterBounds.java");
|
||||
}
|
||||
|
||||
@TestMetadata("MethodReceiver.java")
|
||||
public void testMethodReceiver() throws Exception {
|
||||
runTest("compiler/testData/loadJava8/sourceJava/typeUseAnnotations/MethodReceiver.java");
|
||||
}
|
||||
|
||||
@TestMetadata("MethodTypeParameterBounds.java")
|
||||
public void testMethodTypeParameterBounds() throws Exception {
|
||||
runTest("compiler/testData/loadJava8/sourceJava/typeUseAnnotations/MethodTypeParameterBounds.java");
|
||||
}
|
||||
|
||||
@TestMetadata("ReturnType.java")
|
||||
public void testReturnType() throws Exception {
|
||||
runTest("compiler/testData/loadJava8/sourceJava/typeUseAnnotations/ReturnType.java");
|
||||
}
|
||||
|
||||
@TestMetadata("ValueArguments.java")
|
||||
public void testValueArguments() throws Exception {
|
||||
runTest("compiler/testData/loadJava8/sourceJava/typeUseAnnotations/ValueArguments.java");
|
||||
}
|
||||
}
|
||||
@TestMetadata("Basic_DisabledImprovements.java")
|
||||
public void testBasic_DisabledImprovements() {
|
||||
runTest("compiler/testData/loadJava8/compiledJava/typeParameterAnnotations/Basic_DisabledImprovements.java");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/loadJava8/compiledJava/typeUseAnnotations")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class TypeUseAnnotations extends AbstractLoadJava8Test {
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTestCompiledJava, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInTypeUseAnnotations() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava8/compiledJava/typeUseAnnotations"), Pattern.compile("^(.+)\\.java$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("BaseClassTypeArguments.java")
|
||||
public void testBaseClassTypeArguments() {
|
||||
runTest("compiler/testData/loadJava8/compiledJava/typeUseAnnotations/BaseClassTypeArguments.java");
|
||||
}
|
||||
|
||||
@TestMetadata("Basic.java")
|
||||
public void testBasic() {
|
||||
runTest("compiler/testData/loadJava8/compiledJava/typeUseAnnotations/Basic.java");
|
||||
}
|
||||
|
||||
@TestMetadata("Basic_DisabledImprovements.java")
|
||||
public void testBasic_DisabledImprovements() {
|
||||
runTest("compiler/testData/loadJava8/compiledJava/typeUseAnnotations/Basic_DisabledImprovements.java");
|
||||
}
|
||||
|
||||
@TestMetadata("ClassTypeParameterBounds.java")
|
||||
public void testClassTypeParameterBounds() {
|
||||
runTest("compiler/testData/loadJava8/compiledJava/typeUseAnnotations/ClassTypeParameterBounds.java");
|
||||
}
|
||||
|
||||
@TestMetadata("MethodReceiver.java")
|
||||
public void testMethodReceiver() {
|
||||
runTest("compiler/testData/loadJava8/compiledJava/typeUseAnnotations/MethodReceiver.java");
|
||||
}
|
||||
|
||||
@TestMetadata("MethodTypeParameterBounds.java")
|
||||
public void testMethodTypeParameterBounds() {
|
||||
runTest("compiler/testData/loadJava8/compiledJava/typeUseAnnotations/MethodTypeParameterBounds.java");
|
||||
}
|
||||
|
||||
@TestMetadata("ReturnType.java")
|
||||
public void testReturnType() {
|
||||
runTest("compiler/testData/loadJava8/compiledJava/typeUseAnnotations/ReturnType.java");
|
||||
}
|
||||
|
||||
@TestMetadata("ValueArguments.java")
|
||||
public void testValueArguments() {
|
||||
runTest("compiler/testData/loadJava8/compiledJava/typeUseAnnotations/ValueArguments.java");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/loadJava8/compiledKotlinWithStdlib")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class CompiledKotlinWithStdlib extends AbstractLoadJava8Test {
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTestCompiledKotlinWithStdlib, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInCompiledKotlinWithStdlib() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava8/compiledKotlinWithStdlib"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/loadJava8/compiledKotlinWithStdlib/annotations")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Annotations extends AbstractLoadJava8Test {
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTestCompiledKotlinWithStdlib, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInAnnotations() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava8/compiledKotlinWithStdlib/annotations"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("RepeatableAnnotationWithExplicitContainer.kt")
|
||||
public void testRepeatableAnnotationWithExplicitContainer() {
|
||||
runTest("compiler/testData/loadJava8/compiledKotlinWithStdlib/annotations/RepeatableAnnotationWithExplicitContainer.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("RepeatableAnnotationWithImplicitContainer.kt")
|
||||
public void testRepeatableAnnotationWithImplicitContainer() {
|
||||
runTest("compiler/testData/loadJava8/compiledKotlinWithStdlib/annotations/RepeatableAnnotationWithImplicitContainer.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/loadJava8/sourceJava")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class SourceJava extends AbstractLoadJava8Test {
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTestSourceJava, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInSourceJava() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava8/sourceJava"), Pattern.compile("^(.+)\\.java$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("MapRemove.java")
|
||||
public void testMapRemove() {
|
||||
runTest("compiler/testData/loadJava8/sourceJava/MapRemove.java");
|
||||
}
|
||||
|
||||
@TestMetadata("TypeParameterAnnotations.java")
|
||||
public void testTypeParameterAnnotations() {
|
||||
runTest("compiler/testData/loadJava8/sourceJava/TypeParameterAnnotations.java");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/loadJava8/sourceJava/typeParameterAnnotations")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class TypeParameterAnnotations extends AbstractLoadJava8Test {
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTestSourceJava, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInTypeParameterAnnotations() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava8/sourceJava/typeParameterAnnotations"), Pattern.compile("^(.+)\\.java$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("Basic.java")
|
||||
public void testBasic() {
|
||||
runTest("compiler/testData/loadJava8/sourceJava/typeParameterAnnotations/Basic.java");
|
||||
}
|
||||
|
||||
@TestMetadata("Basic_DisabledImprovements.java")
|
||||
public void testBasic_DisabledImprovements() {
|
||||
runTest("compiler/testData/loadJava8/sourceJava/typeParameterAnnotations/Basic_DisabledImprovements.java");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/loadJava8/sourceJava/typeUseAnnotations")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class TypeUseAnnotations extends AbstractLoadJava8Test {
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTestSourceJava, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInTypeUseAnnotations() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava8/sourceJava/typeUseAnnotations"), Pattern.compile("^(.+)\\.java$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("BaseClassTypeArguments.java")
|
||||
public void testBaseClassTypeArguments() {
|
||||
runTest("compiler/testData/loadJava8/sourceJava/typeUseAnnotations/BaseClassTypeArguments.java");
|
||||
}
|
||||
|
||||
@TestMetadata("Basic.java")
|
||||
public void testBasic() {
|
||||
runTest("compiler/testData/loadJava8/sourceJava/typeUseAnnotations/Basic.java");
|
||||
}
|
||||
|
||||
@TestMetadata("Basic_DisabledImprovements.java")
|
||||
public void testBasic_DisabledImprovements() {
|
||||
runTest("compiler/testData/loadJava8/sourceJava/typeUseAnnotations/Basic_DisabledImprovements.java");
|
||||
}
|
||||
|
||||
@TestMetadata("ClassTypeParameterBounds.java")
|
||||
public void testClassTypeParameterBounds() {
|
||||
runTest("compiler/testData/loadJava8/sourceJava/typeUseAnnotations/ClassTypeParameterBounds.java");
|
||||
}
|
||||
|
||||
@TestMetadata("MethodReceiver.java")
|
||||
public void testMethodReceiver() {
|
||||
runTest("compiler/testData/loadJava8/sourceJava/typeUseAnnotations/MethodReceiver.java");
|
||||
}
|
||||
|
||||
@TestMetadata("MethodTypeParameterBounds.java")
|
||||
public void testMethodTypeParameterBounds() {
|
||||
runTest("compiler/testData/loadJava8/sourceJava/typeUseAnnotations/MethodTypeParameterBounds.java");
|
||||
}
|
||||
|
||||
@TestMetadata("ReturnType.java")
|
||||
public void testReturnType() {
|
||||
runTest("compiler/testData/loadJava8/sourceJava/typeUseAnnotations/ReturnType.java");
|
||||
}
|
||||
|
||||
@TestMetadata("ValueArguments.java")
|
||||
public void testValueArguments() {
|
||||
runTest("compiler/testData/loadJava8/sourceJava/typeUseAnnotations/ValueArguments.java");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+18
-18
@@ -21,26 +21,26 @@ import java.util.regex.Pattern;
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class LoadJava8WithPsiClassReadingTestGenerated extends AbstractLoadJava8WithPsiClassReadingTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTestCompiledJava, this, testDataFilePath);
|
||||
}
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTestCompiledJava, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInCompiledJava() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava8/compiledJava"), Pattern.compile("^(.+)\\.java$"), null, true, "typeUseAnnotations", "typeParameterAnnotations");
|
||||
}
|
||||
public void testAllFilesPresentInCompiledJava() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava8/compiledJava"), Pattern.compile("^(.+)\\.java$"), null, true, "typeUseAnnotations", "typeParameterAnnotations");
|
||||
}
|
||||
|
||||
@TestMetadata("InnerClassTypeAnnotation.java")
|
||||
public void testInnerClassTypeAnnotation() throws Exception {
|
||||
runTest("compiler/testData/loadJava8/compiledJava/InnerClassTypeAnnotation.java");
|
||||
}
|
||||
@TestMetadata("InnerClassTypeAnnotation.java")
|
||||
public void testInnerClassTypeAnnotation() {
|
||||
runTest("compiler/testData/loadJava8/compiledJava/InnerClassTypeAnnotation.java");
|
||||
}
|
||||
|
||||
@TestMetadata("MapRemove.java")
|
||||
public void testMapRemove() throws Exception {
|
||||
runTest("compiler/testData/loadJava8/compiledJava/MapRemove.java");
|
||||
}
|
||||
@TestMetadata("MapRemove.java")
|
||||
public void testMapRemove() {
|
||||
runTest("compiler/testData/loadJava8/compiledJava/MapRemove.java");
|
||||
}
|
||||
|
||||
@TestMetadata("ParameterNames.java")
|
||||
public void testParameterNames() throws Exception {
|
||||
runTest("compiler/testData/loadJava8/compiledJava/ParameterNames.java");
|
||||
}
|
||||
@TestMetadata("ParameterNames.java")
|
||||
public void testParameterNames() {
|
||||
runTest("compiler/testData/loadJava8/compiledJava/ParameterNames.java");
|
||||
}
|
||||
}
|
||||
|
||||
+47
-47
@@ -19,54 +19,54 @@ import java.util.regex.Pattern;
|
||||
@SuppressWarnings("all")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class LoadJava8UsingJavacTestGenerated extends AbstractLoadJava8UsingJavacTest {
|
||||
@TestMetadata("compiler/testData/loadJava8/compiledJava")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class CompiledJava extends AbstractLoadJava8UsingJavacTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTestCompiledJava, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInCompiledJava() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava8/compiledJava"), Pattern.compile("^(.+)\\.java$"), null, true, "typeUseAnnotations", "typeParameterAnnotations");
|
||||
}
|
||||
|
||||
@TestMetadata("InnerClassTypeAnnotation.java")
|
||||
public void testInnerClassTypeAnnotation() throws Exception {
|
||||
runTest("compiler/testData/loadJava8/compiledJava/InnerClassTypeAnnotation.java");
|
||||
}
|
||||
|
||||
@TestMetadata("MapRemove.java")
|
||||
public void testMapRemove() throws Exception {
|
||||
runTest("compiler/testData/loadJava8/compiledJava/MapRemove.java");
|
||||
}
|
||||
|
||||
@TestMetadata("ParameterNames.java")
|
||||
public void testParameterNames() throws Exception {
|
||||
runTest("compiler/testData/loadJava8/compiledJava/ParameterNames.java");
|
||||
}
|
||||
@TestMetadata("compiler/testData/loadJava8/compiledJava")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class CompiledJava extends AbstractLoadJava8UsingJavacTest {
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTestCompiledJava, this, testDataFilePath);
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/loadJava8/sourceJava")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class SourceJava extends AbstractLoadJava8UsingJavacTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTestSourceJava, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInSourceJava() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava8/sourceJava"), Pattern.compile("^(.+)\\.java$"), null, true, "typeUseAnnotations", "typeParameterAnnotations");
|
||||
}
|
||||
|
||||
@TestMetadata("MapRemove.java")
|
||||
public void testMapRemove() throws Exception {
|
||||
runTest("compiler/testData/loadJava8/sourceJava/MapRemove.java");
|
||||
}
|
||||
|
||||
@TestMetadata("TypeParameterAnnotations.java")
|
||||
public void testTypeParameterAnnotations() throws Exception {
|
||||
runTest("compiler/testData/loadJava8/sourceJava/TypeParameterAnnotations.java");
|
||||
}
|
||||
public void testAllFilesPresentInCompiledJava() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava8/compiledJava"), Pattern.compile("^(.+)\\.java$"), null, true, "typeUseAnnotations", "typeParameterAnnotations");
|
||||
}
|
||||
|
||||
@TestMetadata("InnerClassTypeAnnotation.java")
|
||||
public void testInnerClassTypeAnnotation() {
|
||||
runTest("compiler/testData/loadJava8/compiledJava/InnerClassTypeAnnotation.java");
|
||||
}
|
||||
|
||||
@TestMetadata("MapRemove.java")
|
||||
public void testMapRemove() {
|
||||
runTest("compiler/testData/loadJava8/compiledJava/MapRemove.java");
|
||||
}
|
||||
|
||||
@TestMetadata("ParameterNames.java")
|
||||
public void testParameterNames() {
|
||||
runTest("compiler/testData/loadJava8/compiledJava/ParameterNames.java");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/loadJava8/sourceJava")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class SourceJava extends AbstractLoadJava8UsingJavacTest {
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTestSourceJava, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInSourceJava() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/loadJava8/sourceJava"), Pattern.compile("^(.+)\\.java$"), null, true, "typeUseAnnotations", "typeParameterAnnotations");
|
||||
}
|
||||
|
||||
@TestMetadata("MapRemove.java")
|
||||
public void testMapRemove() {
|
||||
runTest("compiler/testData/loadJava8/sourceJava/MapRemove.java");
|
||||
}
|
||||
|
||||
@TestMetadata("TypeParameterAnnotations.java")
|
||||
public void testTypeParameterAnnotations() {
|
||||
runTest("compiler/testData/loadJava8/sourceJava/TypeParameterAnnotations.java");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+179
-179
@@ -21,202 +21,202 @@ import java.util.regex.Pattern;
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class EnhancedSignaturesResolvedCallsTestGenerated extends AbstractEnhancedSignaturesResolvedCallsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInEnhancedSignatures() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/resolvedCalls/enhancedSignatures"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/resolvedCalls/enhancedSignatures/collection")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Collection extends AbstractEnhancedSignaturesResolvedCallsTest {
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInEnhancedSignatures() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/resolvedCalls/enhancedSignatures"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
public void testAllFilesPresentInCollection() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/resolvedCalls/enhancedSignatures/collection"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/resolvedCalls/enhancedSignatures/collection")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Collection extends AbstractEnhancedSignaturesResolvedCallsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInCollection() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/resolvedCalls/enhancedSignatures/collection"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("collectionRemoveIf.kt")
|
||||
public void testCollectionRemoveIf() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/enhancedSignatures/collection/collectionRemoveIf.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("collectionSpliterator.kt")
|
||||
public void testCollectionSpliterator() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/enhancedSignatures/collection/collectionSpliterator.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("collectionStream.kt")
|
||||
public void testCollectionStream() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/enhancedSignatures/collection/collectionStream.kt");
|
||||
}
|
||||
@TestMetadata("collectionRemoveIf.kt")
|
||||
public void testCollectionRemoveIf() {
|
||||
runTest("compiler/testData/resolvedCalls/enhancedSignatures/collection/collectionRemoveIf.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/resolvedCalls/enhancedSignatures/iterable")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Iterable extends AbstractEnhancedSignaturesResolvedCallsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInIterable() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/resolvedCalls/enhancedSignatures/iterable"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("iterableSpliterator.kt")
|
||||
public void testIterableSpliterator() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/enhancedSignatures/iterable/iterableSpliterator.kt");
|
||||
}
|
||||
@TestMetadata("collectionSpliterator.kt")
|
||||
public void testCollectionSpliterator() {
|
||||
runTest("compiler/testData/resolvedCalls/enhancedSignatures/collection/collectionSpliterator.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/resolvedCalls/enhancedSignatures/iterator")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Iterator extends AbstractEnhancedSignaturesResolvedCallsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
@TestMetadata("collectionStream.kt")
|
||||
public void testCollectionStream() {
|
||||
runTest("compiler/testData/resolvedCalls/enhancedSignatures/collection/collectionStream.kt");
|
||||
}
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInIterator() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/resolvedCalls/enhancedSignatures/iterator"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("iteratorForEachRemaining.kt")
|
||||
public void testIteratorForEachRemaining() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/enhancedSignatures/iterator/iteratorForEachRemaining.kt");
|
||||
}
|
||||
@TestMetadata("compiler/testData/resolvedCalls/enhancedSignatures/iterable")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Iterable extends AbstractEnhancedSignaturesResolvedCallsTest {
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/resolvedCalls/enhancedSignatures/list")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class List extends AbstractEnhancedSignaturesResolvedCallsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInList() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/resolvedCalls/enhancedSignatures/list"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("listReplaceAll.kt")
|
||||
public void testListReplaceAll() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/enhancedSignatures/list/listReplaceAll.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("listStream.kt")
|
||||
public void testListStream() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/enhancedSignatures/list/listStream.kt");
|
||||
}
|
||||
public void testAllFilesPresentInIterable() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/resolvedCalls/enhancedSignatures/iterable"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/resolvedCalls/enhancedSignatures/map")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Map extends AbstractEnhancedSignaturesResolvedCallsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
@TestMetadata("iterableSpliterator.kt")
|
||||
public void testIterableSpliterator() {
|
||||
runTest("compiler/testData/resolvedCalls/enhancedSignatures/iterable/iterableSpliterator.kt");
|
||||
}
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInMap() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/resolvedCalls/enhancedSignatures/map"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("mapCompute.kt")
|
||||
public void testMapCompute() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/enhancedSignatures/map/mapCompute.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("mapComputeIfAbsent.kt")
|
||||
public void testMapComputeIfAbsent() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/enhancedSignatures/map/mapComputeIfAbsent.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("mapComputeIfPresent.kt")
|
||||
public void testMapComputeIfPresent() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/enhancedSignatures/map/mapComputeIfPresent.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("mapForEach.kt")
|
||||
public void testMapForEach() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/enhancedSignatures/map/mapForEach.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("mapMerge.kt")
|
||||
public void testMapMerge() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/enhancedSignatures/map/mapMerge.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("mapPutIfAbsent.kt")
|
||||
public void testMapPutIfAbsent() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/enhancedSignatures/map/mapPutIfAbsent.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("mapReplace.kt")
|
||||
public void testMapReplace() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/enhancedSignatures/map/mapReplace.kt");
|
||||
}
|
||||
@TestMetadata("compiler/testData/resolvedCalls/enhancedSignatures/iterator")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Iterator extends AbstractEnhancedSignaturesResolvedCallsTest {
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/resolvedCalls/enhancedSignatures/optional")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Optional extends AbstractEnhancedSignaturesResolvedCallsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInOptional() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/resolvedCalls/enhancedSignatures/optional"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("optionalEmpty.kt")
|
||||
public void testOptionalEmpty() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/enhancedSignatures/optional/optionalEmpty.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("optionalGet.kt")
|
||||
public void testOptionalGet() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/enhancedSignatures/optional/optionalGet.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("optionalIfPresent.kt")
|
||||
public void testOptionalIfPresent() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/enhancedSignatures/optional/optionalIfPresent.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("optionalOf.kt")
|
||||
public void testOptionalOf() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/enhancedSignatures/optional/optionalOf.kt");
|
||||
}
|
||||
public void testAllFilesPresentInIterator() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/resolvedCalls/enhancedSignatures/iterator"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/resolvedCalls/enhancedSignatures/references")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class References extends AbstractEnhancedSignaturesResolvedCallsTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInReferences() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/resolvedCalls/enhancedSignatures/references"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("softReference.kt")
|
||||
public void testSoftReference() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/enhancedSignatures/references/softReference.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("weakReference.kt")
|
||||
public void testWeakReference() throws Exception {
|
||||
runTest("compiler/testData/resolvedCalls/enhancedSignatures/references/weakReference.kt");
|
||||
}
|
||||
@TestMetadata("iteratorForEachRemaining.kt")
|
||||
public void testIteratorForEachRemaining() {
|
||||
runTest("compiler/testData/resolvedCalls/enhancedSignatures/iterator/iteratorForEachRemaining.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/resolvedCalls/enhancedSignatures/list")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class List extends AbstractEnhancedSignaturesResolvedCallsTest {
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInList() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/resolvedCalls/enhancedSignatures/list"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("listReplaceAll.kt")
|
||||
public void testListReplaceAll() {
|
||||
runTest("compiler/testData/resolvedCalls/enhancedSignatures/list/listReplaceAll.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("listStream.kt")
|
||||
public void testListStream() {
|
||||
runTest("compiler/testData/resolvedCalls/enhancedSignatures/list/listStream.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/resolvedCalls/enhancedSignatures/map")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Map extends AbstractEnhancedSignaturesResolvedCallsTest {
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInMap() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/resolvedCalls/enhancedSignatures/map"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("mapCompute.kt")
|
||||
public void testMapCompute() {
|
||||
runTest("compiler/testData/resolvedCalls/enhancedSignatures/map/mapCompute.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("mapComputeIfAbsent.kt")
|
||||
public void testMapComputeIfAbsent() {
|
||||
runTest("compiler/testData/resolvedCalls/enhancedSignatures/map/mapComputeIfAbsent.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("mapComputeIfPresent.kt")
|
||||
public void testMapComputeIfPresent() {
|
||||
runTest("compiler/testData/resolvedCalls/enhancedSignatures/map/mapComputeIfPresent.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("mapForEach.kt")
|
||||
public void testMapForEach() {
|
||||
runTest("compiler/testData/resolvedCalls/enhancedSignatures/map/mapForEach.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("mapMerge.kt")
|
||||
public void testMapMerge() {
|
||||
runTest("compiler/testData/resolvedCalls/enhancedSignatures/map/mapMerge.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("mapPutIfAbsent.kt")
|
||||
public void testMapPutIfAbsent() {
|
||||
runTest("compiler/testData/resolvedCalls/enhancedSignatures/map/mapPutIfAbsent.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("mapReplace.kt")
|
||||
public void testMapReplace() {
|
||||
runTest("compiler/testData/resolvedCalls/enhancedSignatures/map/mapReplace.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/resolvedCalls/enhancedSignatures/optional")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Optional extends AbstractEnhancedSignaturesResolvedCallsTest {
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInOptional() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/resolvedCalls/enhancedSignatures/optional"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("optionalEmpty.kt")
|
||||
public void testOptionalEmpty() {
|
||||
runTest("compiler/testData/resolvedCalls/enhancedSignatures/optional/optionalEmpty.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("optionalGet.kt")
|
||||
public void testOptionalGet() {
|
||||
runTest("compiler/testData/resolvedCalls/enhancedSignatures/optional/optionalGet.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("optionalIfPresent.kt")
|
||||
public void testOptionalIfPresent() {
|
||||
runTest("compiler/testData/resolvedCalls/enhancedSignatures/optional/optionalIfPresent.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("optionalOf.kt")
|
||||
public void testOptionalOf() {
|
||||
runTest("compiler/testData/resolvedCalls/enhancedSignatures/optional/optionalOf.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/resolvedCalls/enhancedSignatures/references")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class References extends AbstractEnhancedSignaturesResolvedCallsTest {
|
||||
private void runTest(String testDataFilePath) {
|
||||
KotlinTestUtils.runTest(this::doTest, this, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInReferences() {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/resolvedCalls/enhancedSignatures/references"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@TestMetadata("softReference.kt")
|
||||
public void testSoftReference() {
|
||||
runTest("compiler/testData/resolvedCalls/enhancedSignatures/references/softReference.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("weakReference.kt")
|
||||
public void testWeakReference() {
|
||||
runTest("compiler/testData/resolvedCalls/enhancedSignatures/references/weakReference.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user