Regenerate tests
This commit is contained in:
+17
-26
@@ -21,85 +21,76 @@ import java.util.regex.Pattern;
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class BytecodeListingTestForAllOpenGenerated extends AbstractBytecodeListingTestForAllOpen {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInBytecodeListing() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("plugins/allopen/allopen-cli/testData/bytecodeListing"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
|
||||
}
|
||||
|
||||
@TestMetadata("allOpenOnNotClasses.kt")
|
||||
public void testAllOpenOnNotClasses() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/allopen/allopen-cli/testData/bytecodeListing/allOpenOnNotClasses.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/allopen/allopen-cli/testData/bytecodeListing/allOpenOnNotClasses.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("alreadyOpen.kt")
|
||||
public void testAlreadyOpen() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/allopen/allopen-cli/testData/bytecodeListing/alreadyOpen.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/allopen/allopen-cli/testData/bytecodeListing/alreadyOpen.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("anonymousObject.kt")
|
||||
public void testAnonymousObject() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/allopen/allopen-cli/testData/bytecodeListing/anonymousObject.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/allopen/allopen-cli/testData/bytecodeListing/anonymousObject.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("explicitFinal.kt")
|
||||
public void testExplicitFinal() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/allopen/allopen-cli/testData/bytecodeListing/explicitFinal.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/allopen/allopen-cli/testData/bytecodeListing/explicitFinal.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("metaAnnotation.kt")
|
||||
public void testMetaAnnotation() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/allopen/allopen-cli/testData/bytecodeListing/metaAnnotation.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/allopen/allopen-cli/testData/bytecodeListing/metaAnnotation.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedInner.kt")
|
||||
public void testNestedInner() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/allopen/allopen-cli/testData/bytecodeListing/nestedInner.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/allopen/allopen-cli/testData/bytecodeListing/nestedInner.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("noAllOpen.kt")
|
||||
public void testNoAllOpen() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/allopen/allopen-cli/testData/bytecodeListing/noAllOpen.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/allopen/allopen-cli/testData/bytecodeListing/noAllOpen.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("privateMembers.kt")
|
||||
public void testPrivateMembers() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/allopen/allopen-cli/testData/bytecodeListing/privateMembers.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/allopen/allopen-cli/testData/bytecodeListing/privateMembers.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("sealed.kt")
|
||||
public void testSealed() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/allopen/allopen-cli/testData/bytecodeListing/sealed.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/allopen/allopen-cli/testData/bytecodeListing/sealed.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("severalAllOpen.kt")
|
||||
public void testSeveralAllOpen() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/allopen/allopen-cli/testData/bytecodeListing/severalAllOpen.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/allopen/allopen-cli/testData/bytecodeListing/severalAllOpen.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/allopen/allopen-cli/testData/bytecodeListing/simple.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/allopen/allopen-cli/testData/bytecodeListing/simple.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("springAnnotations.kt")
|
||||
public void testSpringAnnotations() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/allopen/allopen-cli/testData/bytecodeListing/springAnnotations.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/allopen/allopen-cli/testData/bytecodeListing/springAnnotations.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superClassAnnotation.kt")
|
||||
public void testSuperClassAnnotation() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/allopen/allopen-cli/testData/bytecodeListing/superClassAnnotation.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/allopen/allopen-cli/testData/bytecodeListing/superClassAnnotation.kt");
|
||||
}
|
||||
}
|
||||
|
||||
+19
-30
@@ -21,97 +21,86 @@ import java.util.regex.Pattern;
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class ParcelBytecodeListingTestGenerated extends AbstractParcelBytecodeListingTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInCodegen() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("plugins/android-extensions/android-extensions-compiler/testData/parcel/codegen"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
|
||||
}
|
||||
|
||||
@TestMetadata("customDescribeContents.kt")
|
||||
public void testCustomDescribeContents() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/parcel/codegen/customDescribeContents.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/parcel/codegen/customDescribeContents.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("customParcelablesDifferentModule.kt")
|
||||
public void testCustomParcelablesDifferentModule() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/parcel/codegen/customParcelablesDifferentModule.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/parcel/codegen/customParcelablesDifferentModule.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("customParcelablesSameModule.kt")
|
||||
public void testCustomParcelablesSameModule() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/parcel/codegen/customParcelablesSameModule.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/parcel/codegen/customParcelablesSameModule.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("customSimple.kt")
|
||||
public void testCustomSimple() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/parcel/codegen/customSimple.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/parcel/codegen/customSimple.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("customSimpleWithNewArray.kt")
|
||||
public void testCustomSimpleWithNewArray() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/parcel/codegen/customSimpleWithNewArray.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/parcel/codegen/customSimpleWithNewArray.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("describeContentsFromSuperType.kt")
|
||||
public void testDescribeContentsFromSuperType() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/parcel/codegen/describeContentsFromSuperType.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/parcel/codegen/describeContentsFromSuperType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("duplicatingClinit.kt")
|
||||
public void testDuplicatingClinit() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/parcel/codegen/duplicatingClinit.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/parcel/codegen/duplicatingClinit.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("IBinderIInterface.kt")
|
||||
public void testIBinderIInterface() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/parcel/codegen/IBinderIInterface.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/parcel/codegen/IBinderIInterface.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("listInsideList.kt")
|
||||
public void testListInsideList() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/parcel/codegen/listInsideList.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/parcel/codegen/listInsideList.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nullableNotNullSize.kt")
|
||||
public void testNullableNotNullSize() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/parcel/codegen/nullableNotNullSize.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/parcel/codegen/nullableNotNullSize.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("parcelable.kt")
|
||||
public void testParcelable() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/parcel/codegen/parcelable.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/parcel/codegen/parcelable.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("serializable.kt")
|
||||
public void testSerializable() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/parcel/codegen/serializable.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/parcel/codegen/serializable.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/parcel/codegen/simple.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/parcel/codegen/simple.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleList.kt")
|
||||
public void testSimpleList() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/parcel/codegen/simpleList.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/parcel/codegen/simpleList.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("size.kt")
|
||||
public void testSize() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/parcel/codegen/size.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/parcel/codegen/size.kt");
|
||||
}
|
||||
}
|
||||
|
||||
+28
-40
@@ -23,68 +23,62 @@ public class AndroidBoxTestGenerated extends AbstractAndroidBoxTest {
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Android extends AbstractAndroidBoxTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doCompileAgainstAndroidSdkTest, TargetBackend.ANY, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInAndroid() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("plugins/android-extensions/android-extensions-compiler/testData/codegen/android"), Pattern.compile("^([^\\.]+)$"), TargetBackend.ANY, false);
|
||||
}
|
||||
|
||||
@TestMetadata("androidEntity")
|
||||
public void testAndroidEntity() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/codegen/android/androidEntity/");
|
||||
doCompileAgainstAndroidSdkTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/codegen/android/androidEntity/");
|
||||
}
|
||||
|
||||
@TestMetadata("androidEntityInnerClass")
|
||||
public void testAndroidEntityInnerClass() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/codegen/android/androidEntityInnerClass/");
|
||||
doCompileAgainstAndroidSdkTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/codegen/android/androidEntityInnerClass/");
|
||||
}
|
||||
|
||||
@TestMetadata("fqNameInAttr")
|
||||
public void testFqNameInAttr() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/codegen/android/fqNameInAttr/");
|
||||
doCompileAgainstAndroidSdkTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/codegen/android/fqNameInAttr/");
|
||||
}
|
||||
|
||||
@TestMetadata("fqNameInTag")
|
||||
public void testFqNameInTag() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/codegen/android/fqNameInTag/");
|
||||
doCompileAgainstAndroidSdkTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/codegen/android/fqNameInTag/");
|
||||
}
|
||||
|
||||
@TestMetadata("fragment")
|
||||
public void testFragment() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/codegen/android/fragment/");
|
||||
doCompileAgainstAndroidSdkTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/codegen/android/fragment/");
|
||||
}
|
||||
|
||||
@TestMetadata("fragmentNoGetView")
|
||||
public void testFragmentNoGetView() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/codegen/android/fragmentNoGetView/");
|
||||
doCompileAgainstAndroidSdkTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/codegen/android/fragmentNoGetView/");
|
||||
}
|
||||
|
||||
@TestMetadata("manyWidgets")
|
||||
public void testManyWidgets() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/codegen/android/manyWidgets/");
|
||||
doCompileAgainstAndroidSdkTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/codegen/android/manyWidgets/");
|
||||
}
|
||||
|
||||
@TestMetadata("multiFile")
|
||||
public void testMultiFile() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/codegen/android/multiFile/");
|
||||
doCompileAgainstAndroidSdkTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/codegen/android/multiFile/");
|
||||
}
|
||||
|
||||
@TestMetadata("singleFile")
|
||||
public void testSingleFile() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/codegen/android/singleFile/");
|
||||
doCompileAgainstAndroidSdkTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/codegen/android/singleFile/");
|
||||
}
|
||||
|
||||
@TestMetadata("view")
|
||||
public void testView() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/codegen/android/view/");
|
||||
doCompileAgainstAndroidSdkTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/codegen/android/view/");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -92,68 +86,62 @@ public class AndroidBoxTestGenerated extends AbstractAndroidBoxTest {
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Invoke extends AbstractAndroidBoxTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doFakeInvocationTest, TargetBackend.ANY, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInInvoke() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("plugins/android-extensions/android-extensions-compiler/testData/codegen/android"), Pattern.compile("^([^\\.]+)$"), TargetBackend.ANY, false);
|
||||
}
|
||||
|
||||
@TestMetadata("androidEntity")
|
||||
public void testAndroidEntity() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/codegen/android/androidEntity/");
|
||||
doFakeInvocationTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/codegen/android/androidEntity/");
|
||||
}
|
||||
|
||||
@TestMetadata("androidEntityInnerClass")
|
||||
public void testAndroidEntityInnerClass() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/codegen/android/androidEntityInnerClass/");
|
||||
doFakeInvocationTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/codegen/android/androidEntityInnerClass/");
|
||||
}
|
||||
|
||||
@TestMetadata("fqNameInAttr")
|
||||
public void testFqNameInAttr() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/codegen/android/fqNameInAttr/");
|
||||
doFakeInvocationTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/codegen/android/fqNameInAttr/");
|
||||
}
|
||||
|
||||
@TestMetadata("fqNameInTag")
|
||||
public void testFqNameInTag() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/codegen/android/fqNameInTag/");
|
||||
doFakeInvocationTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/codegen/android/fqNameInTag/");
|
||||
}
|
||||
|
||||
@TestMetadata("fragment")
|
||||
public void testFragment() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/codegen/android/fragment/");
|
||||
doFakeInvocationTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/codegen/android/fragment/");
|
||||
}
|
||||
|
||||
@TestMetadata("fragmentNoGetView")
|
||||
public void testFragmentNoGetView() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/codegen/android/fragmentNoGetView/");
|
||||
doFakeInvocationTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/codegen/android/fragmentNoGetView/");
|
||||
}
|
||||
|
||||
@TestMetadata("manyWidgets")
|
||||
public void testManyWidgets() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/codegen/android/manyWidgets/");
|
||||
doFakeInvocationTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/codegen/android/manyWidgets/");
|
||||
}
|
||||
|
||||
@TestMetadata("multiFile")
|
||||
public void testMultiFile() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/codegen/android/multiFile/");
|
||||
doFakeInvocationTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/codegen/android/multiFile/");
|
||||
}
|
||||
|
||||
@TestMetadata("singleFile")
|
||||
public void testSingleFile() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/codegen/android/singleFile/");
|
||||
doFakeInvocationTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/codegen/android/singleFile/");
|
||||
}
|
||||
|
||||
@TestMetadata("view")
|
||||
public void testView() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/codegen/android/view/");
|
||||
doFakeInvocationTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/codegen/android/view/");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+37
-66
@@ -21,10 +21,13 @@ import java.util.regex.Pattern;
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class AndroidBytecodeShapeTestGenerated extends AbstractAndroidBytecodeShapeTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath);
|
||||
}
|
||||
|
||||
@TestMetadata("activityWithEntityOptionsNoCache")
|
||||
public void testActivityWithEntityOptionsNoCache() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/codegen/bytecodeShape/activityWithEntityOptionsNoCache/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/codegen/bytecodeShape/activityWithEntityOptionsNoCache/");
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInBytecodeShape() throws Exception {
|
||||
@@ -33,193 +36,161 @@ public class AndroidBytecodeShapeTestGenerated extends AbstractAndroidBytecodeSh
|
||||
|
||||
@TestMetadata("baseClass")
|
||||
public void testBaseClass() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/codegen/bytecodeShape/baseClass/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/codegen/bytecodeShape/baseClass/");
|
||||
}
|
||||
|
||||
@TestMetadata("baseClassFragment")
|
||||
public void testBaseClassFragment() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/codegen/bytecodeShape/baseClassFragment/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/codegen/bytecodeShape/baseClassFragment/");
|
||||
}
|
||||
|
||||
@TestMetadata("clearCache")
|
||||
public void testClearCache() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/codegen/bytecodeShape/clearCache/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/codegen/bytecodeShape/clearCache/");
|
||||
}
|
||||
|
||||
@TestMetadata("clearCacheBaseClass")
|
||||
public void testClearCacheBaseClass() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/codegen/bytecodeShape/clearCacheBaseClass/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/codegen/bytecodeShape/clearCacheBaseClass/");
|
||||
}
|
||||
|
||||
@TestMetadata("dialog")
|
||||
public void testDialog() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/codegen/bytecodeShape/dialog/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/codegen/bytecodeShape/dialog/");
|
||||
}
|
||||
|
||||
@TestMetadata("extensionFunctions")
|
||||
public void testExtensionFunctions() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/codegen/bytecodeShape/extensionFunctions/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/codegen/bytecodeShape/extensionFunctions/");
|
||||
}
|
||||
|
||||
@TestMetadata("extensionFunctionsFragment")
|
||||
public void testExtensionFunctionsFragment() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/codegen/bytecodeShape/extensionFunctionsFragment/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/codegen/bytecodeShape/extensionFunctionsFragment/");
|
||||
}
|
||||
|
||||
@TestMetadata("extensionFunctionsView")
|
||||
public void testExtensionFunctionsView() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/codegen/bytecodeShape/extensionFunctionsView/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/codegen/bytecodeShape/extensionFunctionsView/");
|
||||
}
|
||||
|
||||
@TestMetadata("fqNameInAttr")
|
||||
public void testFqNameInAttr() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/codegen/bytecodeShape/fqNameInAttr/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/codegen/bytecodeShape/fqNameInAttr/");
|
||||
}
|
||||
|
||||
@TestMetadata("fqNameInAttrFragment")
|
||||
public void testFqNameInAttrFragment() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/codegen/bytecodeShape/fqNameInAttrFragment/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/codegen/bytecodeShape/fqNameInAttrFragment/");
|
||||
}
|
||||
|
||||
@TestMetadata("fqNameInTag")
|
||||
public void testFqNameInTag() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/codegen/bytecodeShape/fqNameInTag/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/codegen/bytecodeShape/fqNameInTag/");
|
||||
}
|
||||
|
||||
@TestMetadata("fqNameInTagFragment")
|
||||
public void testFqNameInTagFragment() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/codegen/bytecodeShape/fqNameInTagFragment/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/codegen/bytecodeShape/fqNameInTagFragment/");
|
||||
}
|
||||
|
||||
@TestMetadata("fragmentWithEntityOptionsNoCache")
|
||||
public void testFragmentWithEntityOptionsNoCache() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/codegen/bytecodeShape/fragmentWithEntityOptionsNoCache/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/codegen/bytecodeShape/fragmentWithEntityOptionsNoCache/");
|
||||
}
|
||||
|
||||
@TestMetadata("kt18545")
|
||||
public void testKt18545() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/codegen/bytecodeShape/kt18545/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/codegen/bytecodeShape/kt18545/");
|
||||
}
|
||||
|
||||
@TestMetadata("multiFile")
|
||||
public void testMultiFile() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/codegen/bytecodeShape/multiFile/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/codegen/bytecodeShape/multiFile/");
|
||||
}
|
||||
|
||||
@TestMetadata("multiFileFragment")
|
||||
public void testMultiFileFragment() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/codegen/bytecodeShape/multiFileFragment/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/codegen/bytecodeShape/multiFileFragment/");
|
||||
}
|
||||
|
||||
@TestMetadata("onDestroyFragment")
|
||||
public void testOnDestroyFragment() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/codegen/bytecodeShape/onDestroyFragment/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/codegen/bytecodeShape/onDestroyFragment/");
|
||||
}
|
||||
|
||||
@TestMetadata("simple")
|
||||
public void testSimple() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/codegen/bytecodeShape/simple/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/codegen/bytecodeShape/simple/");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleFragment")
|
||||
public void testSimpleFragment() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/codegen/bytecodeShape/simpleFragment/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/codegen/bytecodeShape/simpleFragment/");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleFragmentProperty")
|
||||
public void testSimpleFragmentProperty() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/codegen/bytecodeShape/simpleFragmentProperty/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/codegen/bytecodeShape/simpleFragmentProperty/");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleHashMapCacheImplementation")
|
||||
public void testSimpleHashMapCacheImplementation() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/codegen/bytecodeShape/simpleHashMapCacheImplementation/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/codegen/bytecodeShape/simpleHashMapCacheImplementation/");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleView")
|
||||
public void testSimpleView() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/codegen/bytecodeShape/simpleView/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/codegen/bytecodeShape/simpleView/");
|
||||
}
|
||||
|
||||
@TestMetadata("supportExtensionFunctionsFragment")
|
||||
public void testSupportExtensionFunctionsFragment() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/codegen/bytecodeShape/supportExtensionFunctionsFragment/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/codegen/bytecodeShape/supportExtensionFunctionsFragment/");
|
||||
}
|
||||
|
||||
@TestMetadata("supportExtensionFunctionsFragmentAndroidx")
|
||||
public void testSupportExtensionFunctionsFragmentAndroidx() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/codegen/bytecodeShape/supportExtensionFunctionsFragmentAndroidx/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/codegen/bytecodeShape/supportExtensionFunctionsFragmentAndroidx/");
|
||||
}
|
||||
|
||||
@TestMetadata("supportSimpleFragment")
|
||||
public void testSupportSimpleFragment() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/codegen/bytecodeShape/supportSimpleFragment/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/codegen/bytecodeShape/supportSimpleFragment/");
|
||||
}
|
||||
|
||||
@TestMetadata("supportSimpleFragmentAndroidx")
|
||||
public void testSupportSimpleFragmentAndroidx() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/codegen/bytecodeShape/supportSimpleFragmentAndroidx/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/codegen/bytecodeShape/supportSimpleFragmentAndroidx/");
|
||||
}
|
||||
|
||||
@TestMetadata("supportSimpleFragmentProperty")
|
||||
public void testSupportSimpleFragmentProperty() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/codegen/bytecodeShape/supportSimpleFragmentProperty/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/codegen/bytecodeShape/supportSimpleFragmentProperty/");
|
||||
}
|
||||
|
||||
@TestMetadata("supportSimpleFragmentPropertyAndroidx")
|
||||
public void testSupportSimpleFragmentPropertyAndroidx() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/codegen/bytecodeShape/supportSimpleFragmentPropertyAndroidx/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/codegen/bytecodeShape/supportSimpleFragmentPropertyAndroidx/");
|
||||
}
|
||||
|
||||
@TestMetadata("viewStub")
|
||||
public void testViewStub() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/codegen/bytecodeShape/viewStub/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/codegen/bytecodeShape/viewStub/");
|
||||
}
|
||||
|
||||
@TestMetadata("viewWithCache")
|
||||
public void testViewWithCache() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/codegen/bytecodeShape/viewWithCache/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/codegen/bytecodeShape/viewWithCache/");
|
||||
}
|
||||
|
||||
@TestMetadata("viewWithDefaultNoCache")
|
||||
public void testViewWithDefaultNoCache() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/codegen/bytecodeShape/viewWithDefaultNoCache/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/codegen/bytecodeShape/viewWithDefaultNoCache/");
|
||||
}
|
||||
|
||||
@TestMetadata("viewWithEntityOptionsNoCache")
|
||||
public void testViewWithEntityOptionsNoCache() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/codegen/bytecodeShape/viewWithEntityOptionsNoCache/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/codegen/bytecodeShape/viewWithEntityOptionsNoCache/");
|
||||
}
|
||||
}
|
||||
|
||||
+20
-32
@@ -21,103 +21,91 @@ import java.util.regex.Pattern;
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class AndroidSyntheticPropertyDescriptorTestGenerated extends AbstractAndroidSyntheticPropertyDescriptorTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInDescriptors() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("plugins/android-extensions/android-extensions-compiler/testData/descriptors"), Pattern.compile("^([^\\.]+)$"), TargetBackend.ANY, false);
|
||||
}
|
||||
|
||||
@TestMetadata("escapedLayoutName")
|
||||
public void testEscapedLayoutName() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/descriptors/escapedLayoutName/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/descriptors/escapedLayoutName/");
|
||||
}
|
||||
|
||||
@TestMetadata("fqNameInAttr")
|
||||
public void testFqNameInAttr() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/descriptors/fqNameInAttr/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/descriptors/fqNameInAttr/");
|
||||
}
|
||||
|
||||
@TestMetadata("fqNameInTag")
|
||||
public void testFqNameInTag() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/descriptors/fqNameInTag/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/descriptors/fqNameInTag/");
|
||||
}
|
||||
|
||||
@TestMetadata("layoutVariants")
|
||||
public void testLayoutVariants() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/descriptors/layoutVariants/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/descriptors/layoutVariants/");
|
||||
}
|
||||
|
||||
@TestMetadata("multiFile")
|
||||
public void testMultiFile() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/descriptors/multiFile/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/descriptors/multiFile/");
|
||||
}
|
||||
|
||||
@TestMetadata("noIds")
|
||||
public void testNoIds() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/descriptors/noIds/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/descriptors/noIds/");
|
||||
}
|
||||
|
||||
@TestMetadata("nonLatinNames")
|
||||
public void testNonLatinNames() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/descriptors/nonLatinNames/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/descriptors/nonLatinNames/");
|
||||
}
|
||||
|
||||
@TestMetadata("sameIds")
|
||||
public void testSameIds() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/descriptors/sameIds/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/descriptors/sameIds/");
|
||||
}
|
||||
|
||||
@TestMetadata("severalResDirs")
|
||||
public void testSeveralResDirs() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/descriptors/severalResDirs/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/descriptors/severalResDirs/");
|
||||
}
|
||||
|
||||
@TestMetadata("singleFile")
|
||||
public void testSingleFile() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/descriptors/singleFile/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/descriptors/singleFile/");
|
||||
}
|
||||
|
||||
@TestMetadata("specialTags")
|
||||
public void testSpecialTags() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/descriptors/specialTags/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/descriptors/specialTags/");
|
||||
}
|
||||
|
||||
@TestMetadata("supportSingleFile")
|
||||
public void testSupportSingleFile() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/descriptors/supportSingleFile/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/descriptors/supportSingleFile/");
|
||||
}
|
||||
|
||||
@TestMetadata("supportSpecialTags")
|
||||
public void testSupportSpecialTags() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/descriptors/supportSpecialTags/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/descriptors/supportSpecialTags/");
|
||||
}
|
||||
|
||||
@TestMetadata("unresolvedFqName")
|
||||
public void testUnresolvedFqName() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/descriptors/unresolvedFqName/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/descriptors/unresolvedFqName/");
|
||||
}
|
||||
|
||||
@TestMetadata("unresolvedWidget")
|
||||
public void testUnresolvedWidget() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/descriptors/unresolvedWidget/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/descriptors/unresolvedWidget/");
|
||||
}
|
||||
|
||||
@TestMetadata("viewStub")
|
||||
public void testViewStub() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-compiler/testData/descriptors/viewStub/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-compiler/testData/descriptors/viewStub/");
|
||||
}
|
||||
}
|
||||
|
||||
+14
-20
@@ -21,67 +21,61 @@ import java.util.regex.Pattern;
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class AndroidCompletionTestGenerated extends AbstractAndroidCompletionTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInCompletion() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("plugins/android-extensions/android-extensions-idea/testData/android/completion"), Pattern.compile("^([^\\.]+)$"), TargetBackend.ANY, false);
|
||||
}
|
||||
|
||||
@TestMetadata("fqNameInAttr")
|
||||
public void testFqNameInAttr() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-idea/testData/android/completion/fqNameInAttr/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-idea/testData/android/completion/fqNameInAttr/");
|
||||
}
|
||||
|
||||
@TestMetadata("fqNameInAttrFragment")
|
||||
public void testFqNameInAttrFragment() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-idea/testData/android/completion/fqNameInAttrFragment/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-idea/testData/android/completion/fqNameInAttrFragment/");
|
||||
}
|
||||
|
||||
@TestMetadata("fqNameInTag")
|
||||
public void testFqNameInTag() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-idea/testData/android/completion/fqNameInTag/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-idea/testData/android/completion/fqNameInTag/");
|
||||
}
|
||||
|
||||
@TestMetadata("fqNameInTagFragment")
|
||||
public void testFqNameInTagFragment() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-idea/testData/android/completion/fqNameInTagFragment/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-idea/testData/android/completion/fqNameInTagFragment/");
|
||||
}
|
||||
|
||||
@TestMetadata("multiFile")
|
||||
public void testMultiFile() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-idea/testData/android/completion/multiFile/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-idea/testData/android/completion/multiFile/");
|
||||
}
|
||||
|
||||
@TestMetadata("multiFileFragment")
|
||||
public void testMultiFileFragment() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-idea/testData/android/completion/multiFileFragment/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-idea/testData/android/completion/multiFileFragment/");
|
||||
}
|
||||
|
||||
@TestMetadata("propertiesSimple")
|
||||
public void testPropertiesSimple() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-idea/testData/android/completion/propertiesSimple/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-idea/testData/android/completion/propertiesSimple/");
|
||||
}
|
||||
|
||||
@TestMetadata("propertiesSimpleFragment")
|
||||
public void testPropertiesSimpleFragment() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-idea/testData/android/completion/propertiesSimpleFragment/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-idea/testData/android/completion/propertiesSimpleFragment/");
|
||||
}
|
||||
|
||||
@TestMetadata("propertiesSimpleView")
|
||||
public void testPropertiesSimpleView() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-idea/testData/android/completion/propertiesSimpleView/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-idea/testData/android/completion/propertiesSimpleView/");
|
||||
}
|
||||
|
||||
@TestMetadata("withoutImport")
|
||||
public void testWithoutImport() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-idea/testData/android/completion/withoutImport/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-idea/testData/android/completion/withoutImport/");
|
||||
}
|
||||
}
|
||||
|
||||
+5
-2
@@ -21,13 +21,16 @@ import java.util.regex.Pattern;
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class AndroidExtractionTestGenerated extends AbstractAndroidExtractionTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInExtraction() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("plugins/android-extensions/android-extensions-idea/testData/android/extraction"), Pattern.compile("^([^\\.]+)$"), TargetBackend.ANY, false);
|
||||
}
|
||||
|
||||
@TestMetadata("toTopLevelFun")
|
||||
public void testToTopLevelFun() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-idea/testData/android/extraction/toTopLevelFun/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-idea/testData/android/extraction/toTopLevelFun/");
|
||||
}
|
||||
}
|
||||
|
||||
+14
-20
@@ -21,67 +21,61 @@ import java.util.regex.Pattern;
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class AndroidFindUsagesTestGenerated extends AbstractAndroidFindUsagesTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInFindUsages() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("plugins/android-extensions/android-extensions-idea/testData/android/findUsages"), Pattern.compile("^([^\\.]+)$"), TargetBackend.ANY, false);
|
||||
}
|
||||
|
||||
@TestMetadata("fqNameInAttr")
|
||||
public void testFqNameInAttr() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-idea/testData/android/findUsages/fqNameInAttr/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-idea/testData/android/findUsages/fqNameInAttr/");
|
||||
}
|
||||
|
||||
@TestMetadata("fqNameInAttrFragment")
|
||||
public void testFqNameInAttrFragment() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-idea/testData/android/findUsages/fqNameInAttrFragment/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-idea/testData/android/findUsages/fqNameInAttrFragment/");
|
||||
}
|
||||
|
||||
@TestMetadata("fqNameInTag")
|
||||
public void testFqNameInTag() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-idea/testData/android/findUsages/fqNameInTag/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-idea/testData/android/findUsages/fqNameInTag/");
|
||||
}
|
||||
|
||||
@TestMetadata("fqNameInTagFragment")
|
||||
public void testFqNameInTagFragment() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-idea/testData/android/findUsages/fqNameInTagFragment/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-idea/testData/android/findUsages/fqNameInTagFragment/");
|
||||
}
|
||||
|
||||
@TestMetadata("multiFile")
|
||||
public void testMultiFile() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-idea/testData/android/findUsages/multiFile/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-idea/testData/android/findUsages/multiFile/");
|
||||
}
|
||||
|
||||
@TestMetadata("multiFileFragment")
|
||||
public void testMultiFileFragment() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-idea/testData/android/findUsages/multiFileFragment/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-idea/testData/android/findUsages/multiFileFragment/");
|
||||
}
|
||||
|
||||
@TestMetadata("simple")
|
||||
public void testSimple() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-idea/testData/android/findUsages/simple/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-idea/testData/android/findUsages/simple/");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleFragment")
|
||||
public void testSimpleFragment() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-idea/testData/android/findUsages/simpleFragment/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-idea/testData/android/findUsages/simpleFragment/");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleView")
|
||||
public void testSimpleView() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-idea/testData/android/findUsages/simpleView/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-idea/testData/android/findUsages/simpleView/");
|
||||
}
|
||||
|
||||
@TestMetadata("wrongIdFormat")
|
||||
public void testWrongIdFormat() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-idea/testData/android/findUsages/wrongIdFormat/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-idea/testData/android/findUsages/wrongIdFormat/");
|
||||
}
|
||||
}
|
||||
|
||||
+14
-20
@@ -21,67 +21,61 @@ import java.util.regex.Pattern;
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class AndroidGotoTestGenerated extends AbstractAndroidGotoTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInGoto() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("plugins/android-extensions/android-extensions-idea/testData/android/goto"), Pattern.compile("^([^\\.]+)$"), TargetBackend.ANY, false);
|
||||
}
|
||||
|
||||
@TestMetadata("customNamespaceName")
|
||||
public void testCustomNamespaceName() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-idea/testData/android/goto/customNamespaceName/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-idea/testData/android/goto/customNamespaceName/");
|
||||
}
|
||||
|
||||
@TestMetadata("fqNameInAttr")
|
||||
public void testFqNameInAttr() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-idea/testData/android/goto/fqNameInAttr/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-idea/testData/android/goto/fqNameInAttr/");
|
||||
}
|
||||
|
||||
@TestMetadata("fqNameInAttrFragment")
|
||||
public void testFqNameInAttrFragment() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-idea/testData/android/goto/fqNameInAttrFragment/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-idea/testData/android/goto/fqNameInAttrFragment/");
|
||||
}
|
||||
|
||||
@TestMetadata("fqNameInTag")
|
||||
public void testFqNameInTag() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-idea/testData/android/goto/fqNameInTag/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-idea/testData/android/goto/fqNameInTag/");
|
||||
}
|
||||
|
||||
@TestMetadata("fqNameInTagFragment")
|
||||
public void testFqNameInTagFragment() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-idea/testData/android/goto/fqNameInTagFragment/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-idea/testData/android/goto/fqNameInTagFragment/");
|
||||
}
|
||||
|
||||
@TestMetadata("multiFile")
|
||||
public void testMultiFile() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-idea/testData/android/goto/multiFile/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-idea/testData/android/goto/multiFile/");
|
||||
}
|
||||
|
||||
@TestMetadata("multiFileFragment")
|
||||
public void testMultiFileFragment() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-idea/testData/android/goto/multiFileFragment/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-idea/testData/android/goto/multiFileFragment/");
|
||||
}
|
||||
|
||||
@TestMetadata("simple")
|
||||
public void testSimple() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-idea/testData/android/goto/simple/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-idea/testData/android/goto/simple/");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleFragment")
|
||||
public void testSimpleFragment() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-idea/testData/android/goto/simpleFragment/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-idea/testData/android/goto/simpleFragment/");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleView")
|
||||
public void testSimpleView() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-idea/testData/android/goto/simpleView/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-idea/testData/android/goto/simpleView/");
|
||||
}
|
||||
}
|
||||
|
||||
+5
-2
@@ -21,13 +21,16 @@ import java.util.regex.Pattern;
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class AndroidLayoutRenameTestGenerated extends AbstractAndroidLayoutRenameTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInRenameLayout() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("plugins/android-extensions/android-extensions-idea/testData/android/renameLayout"), Pattern.compile("^([^\\.]+)$"), TargetBackend.ANY, false);
|
||||
}
|
||||
|
||||
@TestMetadata("simple")
|
||||
public void testSimple() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-idea/testData/android/renameLayout/simple/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-idea/testData/android/renameLayout/simple/");
|
||||
}
|
||||
}
|
||||
|
||||
+14
-20
@@ -21,67 +21,61 @@ import java.util.regex.Pattern;
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class AndroidRenameTestGenerated extends AbstractAndroidRenameTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInRename() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("plugins/android-extensions/android-extensions-idea/testData/android/rename"), Pattern.compile("^([^\\.]+)$"), TargetBackend.ANY, false);
|
||||
}
|
||||
|
||||
@TestMetadata("commonElementId")
|
||||
public void testCommonElementId() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-idea/testData/android/rename/commonElementId/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-idea/testData/android/rename/commonElementId/");
|
||||
}
|
||||
|
||||
@TestMetadata("fqNameInAttr")
|
||||
public void testFqNameInAttr() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-idea/testData/android/rename/fqNameInAttr/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-idea/testData/android/rename/fqNameInAttr/");
|
||||
}
|
||||
|
||||
@TestMetadata("fqNameInAttrFragment")
|
||||
public void testFqNameInAttrFragment() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-idea/testData/android/rename/fqNameInAttrFragment/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-idea/testData/android/rename/fqNameInAttrFragment/");
|
||||
}
|
||||
|
||||
@TestMetadata("fqNameInTag")
|
||||
public void testFqNameInTag() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-idea/testData/android/rename/fqNameInTag/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-idea/testData/android/rename/fqNameInTag/");
|
||||
}
|
||||
|
||||
@TestMetadata("fqNameInTagFragment")
|
||||
public void testFqNameInTagFragment() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-idea/testData/android/rename/fqNameInTagFragment/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-idea/testData/android/rename/fqNameInTagFragment/");
|
||||
}
|
||||
|
||||
@TestMetadata("multiFile")
|
||||
public void testMultiFile() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-idea/testData/android/rename/multiFile/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-idea/testData/android/rename/multiFile/");
|
||||
}
|
||||
|
||||
@TestMetadata("multiFileFragment")
|
||||
public void testMultiFileFragment() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-idea/testData/android/rename/multiFileFragment/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-idea/testData/android/rename/multiFileFragment/");
|
||||
}
|
||||
|
||||
@TestMetadata("simple")
|
||||
public void testSimple() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-idea/testData/android/rename/simple/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-idea/testData/android/rename/simple/");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleFragment")
|
||||
public void testSimpleFragment() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-idea/testData/android/rename/simpleFragment/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-idea/testData/android/rename/simpleFragment/");
|
||||
}
|
||||
|
||||
@TestMetadata("simpleView")
|
||||
public void testSimpleView() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-idea/testData/android/rename/simpleView/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-idea/testData/android/rename/simpleView/");
|
||||
}
|
||||
}
|
||||
|
||||
+5
-2
@@ -21,13 +21,16 @@ import java.util.regex.Pattern;
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class AndroidUsageHighlightingTestGenerated extends AbstractAndroidUsageHighlightingTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInUsageHighlighting() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("plugins/android-extensions/android-extensions-idea/testData/android/usageHighlighting"), Pattern.compile("^([^\\.]+)$"), TargetBackend.ANY, false);
|
||||
}
|
||||
|
||||
@TestMetadata("simple")
|
||||
public void testSimple() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-idea/testData/android/usageHighlighting/simple/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-idea/testData/android/usageHighlighting/simple/");
|
||||
}
|
||||
}
|
||||
|
||||
+18
-28
@@ -21,91 +21,81 @@ import java.util.regex.Pattern;
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class ParcelCheckerTestGenerated extends AbstractParcelCheckerTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInChecker() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("plugins/android-extensions/android-extensions-idea/testData/android/parcel/checker"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
|
||||
}
|
||||
|
||||
@TestMetadata("constructors.kt")
|
||||
public void testConstructors() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-idea/testData/android/parcel/checker/constructors.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-idea/testData/android/parcel/checker/constructors.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("customCreator.kt")
|
||||
public void testCustomCreator() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-idea/testData/android/parcel/checker/customCreator.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-idea/testData/android/parcel/checker/customCreator.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("customParcelers.kt")
|
||||
public void testCustomParcelers() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-idea/testData/android/parcel/checker/customParcelers.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-idea/testData/android/parcel/checker/customParcelers.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("customWriteToParcel.kt")
|
||||
public void testCustomWriteToParcel() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-idea/testData/android/parcel/checker/customWriteToParcel.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-idea/testData/android/parcel/checker/customWriteToParcel.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("delegate.kt")
|
||||
public void testDelegate() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-idea/testData/android/parcel/checker/delegate.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-idea/testData/android/parcel/checker/delegate.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("emptyPrimaryConstructor.kt")
|
||||
public void testEmptyPrimaryConstructor() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-idea/testData/android/parcel/checker/emptyPrimaryConstructor.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-idea/testData/android/parcel/checker/emptyPrimaryConstructor.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt20062.kt")
|
||||
public void testKt20062() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-idea/testData/android/parcel/checker/kt20062.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-idea/testData/android/parcel/checker/kt20062.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("modality.kt")
|
||||
public void testModality() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-idea/testData/android/parcel/checker/modality.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-idea/testData/android/parcel/checker/modality.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("notMagicParcel.kt")
|
||||
public void testNotMagicParcel() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-idea/testData/android/parcel/checker/notMagicParcel.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-idea/testData/android/parcel/checker/notMagicParcel.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("properties.kt")
|
||||
public void testProperties() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-idea/testData/android/parcel/checker/properties.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-idea/testData/android/parcel/checker/properties.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-idea/testData/android/parcel/checker/simple.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-idea/testData/android/parcel/checker/simple.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unsupportedType.kt")
|
||||
public void testUnsupportedType() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-idea/testData/android/parcel/checker/unsupportedType.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-idea/testData/android/parcel/checker/unsupportedType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("withoutParcelableSupertype.kt")
|
||||
public void testWithoutParcelableSupertype() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-idea/testData/android/parcel/checker/withoutParcelableSupertype.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-idea/testData/android/parcel/checker/withoutParcelableSupertype.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("wrongAnnotationTarget.kt")
|
||||
public void testWrongAnnotationTarget() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-idea/testData/android/parcel/checker/wrongAnnotationTarget.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-idea/testData/android/parcel/checker/wrongAnnotationTarget.kt");
|
||||
}
|
||||
}
|
||||
|
||||
+55
-38
@@ -21,6 +21,10 @@ import java.util.regex.Pattern;
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class ParcelQuickFixTestGenerated extends AbstractParcelQuickFixTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTestWithExtraFile, TargetBackend.ANY, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInQuickfix() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("plugins/android-extensions/android-extensions-idea/testData/android/parcel/quickfix"), Pattern.compile("^(\\w+)\\.((before\\.Main\\.\\w+)|(test))$"), TargetBackend.ANY, true);
|
||||
}
|
||||
@@ -29,26 +33,27 @@ public class ParcelQuickFixTestGenerated extends AbstractParcelQuickFixTest {
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class AddPrimaryConstructor extends AbstractParcelQuickFixTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTestWithExtraFile, TargetBackend.ANY, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInAddPrimaryConstructor() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("plugins/android-extensions/android-extensions-idea/testData/android/parcel/quickfix/addPrimaryConstructor"), Pattern.compile("^(\\w+)\\.((before\\.Main\\.\\w+)|(test))$"), TargetBackend.ANY, true);
|
||||
}
|
||||
|
||||
@TestMetadata("constructorWithDelegate.before.Main.kt")
|
||||
public void testConstructorWithDelegate() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-idea/testData/android/parcel/quickfix/addPrimaryConstructor/constructorWithDelegate.before.Main.kt");
|
||||
doTestWithExtraFile(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-idea/testData/android/parcel/quickfix/addPrimaryConstructor/constructorWithDelegate.before.Main.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("noQuickFix.before.Main.kt")
|
||||
public void testNoQuickFix() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-idea/testData/android/parcel/quickfix/addPrimaryConstructor/noQuickFix.before.Main.kt");
|
||||
doTestWithExtraFile(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-idea/testData/android/parcel/quickfix/addPrimaryConstructor/noQuickFix.before.Main.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simple.before.Main.kt")
|
||||
public void testSimple() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-idea/testData/android/parcel/quickfix/addPrimaryConstructor/simple.before.Main.kt");
|
||||
doTestWithExtraFile(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-idea/testData/android/parcel/quickfix/addPrimaryConstructor/simple.before.Main.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -56,14 +61,17 @@ public class ParcelQuickFixTestGenerated extends AbstractParcelQuickFixTest {
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class CantBeInnerClass extends AbstractParcelQuickFixTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTestWithExtraFile, TargetBackend.ANY, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInCantBeInnerClass() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("plugins/android-extensions/android-extensions-idea/testData/android/parcel/quickfix/cantBeInnerClass"), Pattern.compile("^(\\w+)\\.((before\\.Main\\.\\w+)|(test))$"), TargetBackend.ANY, true);
|
||||
}
|
||||
|
||||
@TestMetadata("simple.before.Main.kt")
|
||||
public void testSimple() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-idea/testData/android/parcel/quickfix/cantBeInnerClass/simple.before.Main.kt");
|
||||
doTestWithExtraFile(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-idea/testData/android/parcel/quickfix/cantBeInnerClass/simple.before.Main.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -71,14 +79,17 @@ public class ParcelQuickFixTestGenerated extends AbstractParcelQuickFixTest {
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class ClassShouldBeAnnotated extends AbstractParcelQuickFixTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTestWithExtraFile, TargetBackend.ANY, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInClassShouldBeAnnotated() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("plugins/android-extensions/android-extensions-idea/testData/android/parcel/quickfix/classShouldBeAnnotated"), Pattern.compile("^(\\w+)\\.((before\\.Main\\.\\w+)|(test))$"), TargetBackend.ANY, true);
|
||||
}
|
||||
|
||||
@TestMetadata("simple.before.Main.kt")
|
||||
public void testSimple() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-idea/testData/android/parcel/quickfix/classShouldBeAnnotated/simple.before.Main.kt");
|
||||
doTestWithExtraFile(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-idea/testData/android/parcel/quickfix/classShouldBeAnnotated/simple.before.Main.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -86,20 +97,22 @@ public class ParcelQuickFixTestGenerated extends AbstractParcelQuickFixTest {
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class DeleteIncompatible extends AbstractParcelQuickFixTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTestWithExtraFile, TargetBackend.ANY, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInDeleteIncompatible() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("plugins/android-extensions/android-extensions-idea/testData/android/parcel/quickfix/deleteIncompatible"), Pattern.compile("^(\\w+)\\.((before\\.Main\\.\\w+)|(test))$"), TargetBackend.ANY, true);
|
||||
}
|
||||
|
||||
@TestMetadata("creatorField.before.Main.kt")
|
||||
public void testCreatorField() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-idea/testData/android/parcel/quickfix/deleteIncompatible/creatorField.before.Main.kt");
|
||||
doTestWithExtraFile(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-idea/testData/android/parcel/quickfix/deleteIncompatible/creatorField.before.Main.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("writeToParcel.before.Main.kt")
|
||||
public void testWriteToParcel() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-idea/testData/android/parcel/quickfix/deleteIncompatible/writeToParcel.before.Main.kt");
|
||||
doTestWithExtraFile(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-idea/testData/android/parcel/quickfix/deleteIncompatible/writeToParcel.before.Main.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -107,56 +120,52 @@ public class ParcelQuickFixTestGenerated extends AbstractParcelQuickFixTest {
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class Migrations extends AbstractParcelQuickFixTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTestWithExtraFile, TargetBackend.ANY, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInMigrations() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("plugins/android-extensions/android-extensions-idea/testData/android/parcel/quickfix/migrations"), Pattern.compile("^(\\w+)\\.((before\\.Main\\.\\w+)|(test))$"), TargetBackend.ANY, true);
|
||||
}
|
||||
|
||||
@TestMetadata("basic.before.Main.kt")
|
||||
public void testBasic() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-idea/testData/android/parcel/quickfix/migrations/basic.before.Main.kt");
|
||||
doTestWithExtraFile(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-idea/testData/android/parcel/quickfix/migrations/basic.before.Main.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("complexCase1.before.Main.kt")
|
||||
public void testComplexCase1() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-idea/testData/android/parcel/quickfix/migrations/complexCase1.before.Main.kt");
|
||||
doTestWithExtraFile(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-idea/testData/android/parcel/quickfix/migrations/complexCase1.before.Main.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("customDescribeContents.before.Main.kt")
|
||||
public void testCustomDescribeContents() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-idea/testData/android/parcel/quickfix/migrations/customDescribeContents.before.Main.kt");
|
||||
doTestWithExtraFile(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-idea/testData/android/parcel/quickfix/migrations/customDescribeContents.before.Main.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("fromCreatorObject.before.Main.kt")
|
||||
public void testFromCreatorObject() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-idea/testData/android/parcel/quickfix/migrations/fromCreatorObject.before.Main.kt");
|
||||
doTestWithExtraFile(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-idea/testData/android/parcel/quickfix/migrations/fromCreatorObject.before.Main.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("innerClassFactory.before.Main.kt")
|
||||
public void testInnerClassFactory() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-idea/testData/android/parcel/quickfix/migrations/innerClassFactory.before.Main.kt");
|
||||
doTestWithExtraFile(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-idea/testData/android/parcel/quickfix/migrations/innerClassFactory.before.Main.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("jvmField.before.Main.kt")
|
||||
public void testJvmField() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-idea/testData/android/parcel/quickfix/migrations/jvmField.before.Main.kt");
|
||||
doTestWithExtraFile(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-idea/testData/android/parcel/quickfix/migrations/jvmField.before.Main.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("noWriteToParcel.before.Main.kt")
|
||||
public void testNoWriteToParcel() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-idea/testData/android/parcel/quickfix/migrations/noWriteToParcel.before.Main.kt");
|
||||
doTestWithExtraFile(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-idea/testData/android/parcel/quickfix/migrations/noWriteToParcel.before.Main.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("withoutDescribeContents.before.Main.kt")
|
||||
public void testWithoutDescribeContents() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-idea/testData/android/parcel/quickfix/migrations/withoutDescribeContents.before.Main.kt");
|
||||
doTestWithExtraFile(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-idea/testData/android/parcel/quickfix/migrations/withoutDescribeContents.before.Main.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -164,20 +173,22 @@ public class ParcelQuickFixTestGenerated extends AbstractParcelQuickFixTest {
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class NoParcelableSupertype extends AbstractParcelQuickFixTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTestWithExtraFile, TargetBackend.ANY, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInNoParcelableSupertype() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("plugins/android-extensions/android-extensions-idea/testData/android/parcel/quickfix/noParcelableSupertype"), Pattern.compile("^(\\w+)\\.((before\\.Main\\.\\w+)|(test))$"), TargetBackend.ANY, true);
|
||||
}
|
||||
|
||||
@TestMetadata("alreadyHasSupertype.before.Main.kt")
|
||||
public void testAlreadyHasSupertype() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-idea/testData/android/parcel/quickfix/noParcelableSupertype/alreadyHasSupertype.before.Main.kt");
|
||||
doTestWithExtraFile(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-idea/testData/android/parcel/quickfix/noParcelableSupertype/alreadyHasSupertype.before.Main.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simple.before.Main.kt")
|
||||
public void testSimple() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-idea/testData/android/parcel/quickfix/noParcelableSupertype/simple.before.Main.kt");
|
||||
doTestWithExtraFile(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-idea/testData/android/parcel/quickfix/noParcelableSupertype/simple.before.Main.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -185,14 +196,17 @@ public class ParcelQuickFixTestGenerated extends AbstractParcelQuickFixTest {
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class PropertyWontBeSerialized extends AbstractParcelQuickFixTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTestWithExtraFile, TargetBackend.ANY, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInPropertyWontBeSerialized() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("plugins/android-extensions/android-extensions-idea/testData/android/parcel/quickfix/propertyWontBeSerialized"), Pattern.compile("^(\\w+)\\.((before\\.Main\\.\\w+)|(test))$"), TargetBackend.ANY, true);
|
||||
}
|
||||
|
||||
@TestMetadata("simple.before.Main.kt")
|
||||
public void testSimple() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-idea/testData/android/parcel/quickfix/propertyWontBeSerialized/simple.before.Main.kt");
|
||||
doTestWithExtraFile(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-idea/testData/android/parcel/quickfix/propertyWontBeSerialized/simple.before.Main.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -200,14 +214,17 @@ public class ParcelQuickFixTestGenerated extends AbstractParcelQuickFixTest {
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public static class RemoveDuplicatingTypeParcelerAnnotation extends AbstractParcelQuickFixTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTestWithExtraFile, TargetBackend.ANY, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInRemoveDuplicatingTypeParcelerAnnotation() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("plugins/android-extensions/android-extensions-idea/testData/android/parcel/quickfix/removeDuplicatingTypeParcelerAnnotation"), Pattern.compile("^(\\w+)\\.((before\\.Main\\.\\w+)|(test))$"), TargetBackend.ANY, true);
|
||||
}
|
||||
|
||||
@TestMetadata("simple.before.Main.kt")
|
||||
public void testSimple() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-idea/testData/android/parcel/quickfix/removeDuplicatingTypeParcelerAnnotation/simple.before.Main.kt");
|
||||
doTestWithExtraFile(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-idea/testData/android/parcel/quickfix/removeDuplicatingTypeParcelerAnnotation/simple.before.Main.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+5
-2
@@ -21,13 +21,16 @@ import java.util.regex.Pattern;
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class AndroidJpsTestCaseGenerated extends AbstractAndroidJpsTestCase {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInAndroid() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("plugins/android-extensions/android-extensions-jps/testData/android"), Pattern.compile("^([^\\.]+)$"), TargetBackend.ANY, false);
|
||||
}
|
||||
|
||||
@TestMetadata("simple")
|
||||
public void testSimple() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/android-extensions/android-extensions-jps/testData/android/simple/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/android-extensions/android-extensions-jps/testData/android/simple/");
|
||||
}
|
||||
}
|
||||
|
||||
+25
-42
@@ -21,133 +21,116 @@ import java.util.regex.Pattern;
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class AnnotationProcessorBoxTestGenerated extends AbstractAnnotationProcessorBoxTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInCollectToFile() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("plugins/annotation-collector/testData/collectToFile"), Pattern.compile("^([^\\.]+)$"), TargetBackend.ANY, false);
|
||||
}
|
||||
|
||||
@TestMetadata("annotatedGettersSetters")
|
||||
public void testAnnotatedGettersSetters() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/annotation-collector/testData/collectToFile/annotatedGettersSetters/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/annotation-collector/testData/collectToFile/annotatedGettersSetters/");
|
||||
}
|
||||
|
||||
@TestMetadata("annotationInSameFile")
|
||||
public void testAnnotationInSameFile() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/annotation-collector/testData/collectToFile/annotationInSameFile/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/annotation-collector/testData/collectToFile/annotationInSameFile/");
|
||||
}
|
||||
|
||||
@TestMetadata("anonymousClasses")
|
||||
public void testAnonymousClasses() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/annotation-collector/testData/collectToFile/anonymousClasses/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/annotation-collector/testData/collectToFile/anonymousClasses/");
|
||||
}
|
||||
|
||||
@TestMetadata("classAnnotations")
|
||||
public void testClassAnnotations() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/annotation-collector/testData/collectToFile/classAnnotations/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/annotation-collector/testData/collectToFile/classAnnotations/");
|
||||
}
|
||||
|
||||
@TestMetadata("constructors")
|
||||
public void testConstructors() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/annotation-collector/testData/collectToFile/constructors/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/annotation-collector/testData/collectToFile/constructors/");
|
||||
}
|
||||
|
||||
@TestMetadata("defaultPackage")
|
||||
public void testDefaultPackage() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/annotation-collector/testData/collectToFile/defaultPackage/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/annotation-collector/testData/collectToFile/defaultPackage/");
|
||||
}
|
||||
|
||||
@TestMetadata("fieldAnnotations")
|
||||
public void testFieldAnnotations() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/annotation-collector/testData/collectToFile/fieldAnnotations/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/annotation-collector/testData/collectToFile/fieldAnnotations/");
|
||||
}
|
||||
|
||||
@TestMetadata("inheritedComplex")
|
||||
public void testInheritedComplex() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/annotation-collector/testData/collectToFile/inheritedComplex/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/annotation-collector/testData/collectToFile/inheritedComplex/");
|
||||
}
|
||||
|
||||
@TestMetadata("inheritedSimple")
|
||||
public void testInheritedSimple() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/annotation-collector/testData/collectToFile/inheritedSimple/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/annotation-collector/testData/collectToFile/inheritedSimple/");
|
||||
}
|
||||
|
||||
@TestMetadata("inheritedTopLevel")
|
||||
public void testInheritedTopLevel() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/annotation-collector/testData/collectToFile/inheritedTopLevel/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/annotation-collector/testData/collectToFile/inheritedTopLevel/");
|
||||
}
|
||||
|
||||
@TestMetadata("localClasses")
|
||||
public void testLocalClasses() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/annotation-collector/testData/collectToFile/localClasses/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/annotation-collector/testData/collectToFile/localClasses/");
|
||||
}
|
||||
|
||||
@TestMetadata("localFunctions")
|
||||
public void testLocalFunctions() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/annotation-collector/testData/collectToFile/localFunctions/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/annotation-collector/testData/collectToFile/localFunctions/");
|
||||
}
|
||||
|
||||
@TestMetadata("methodAnnotations")
|
||||
public void testMethodAnnotations() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/annotation-collector/testData/collectToFile/methodAnnotations/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/annotation-collector/testData/collectToFile/methodAnnotations/");
|
||||
}
|
||||
|
||||
@TestMetadata("multiFileTopLevelAnnotated")
|
||||
public void testMultiFileTopLevelAnnotated() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/annotation-collector/testData/collectToFile/multiFileTopLevelAnnotated/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/annotation-collector/testData/collectToFile/multiFileTopLevelAnnotated/");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedClasses")
|
||||
public void testNestedClasses() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/annotation-collector/testData/collectToFile/nestedClasses/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/annotation-collector/testData/collectToFile/nestedClasses/");
|
||||
}
|
||||
|
||||
@TestMetadata("platformStatic")
|
||||
public void testPlatformStatic() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/annotation-collector/testData/collectToFile/platformStatic/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/annotation-collector/testData/collectToFile/platformStatic/");
|
||||
}
|
||||
|
||||
@TestMetadata("retentionPoliciesJavaAnnotations")
|
||||
public void testRetentionPoliciesJavaAnnotations() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/annotation-collector/testData/collectToFile/retentionPoliciesJavaAnnotations/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/annotation-collector/testData/collectToFile/retentionPoliciesJavaAnnotations/");
|
||||
}
|
||||
|
||||
@TestMetadata("retentionPoliciesJavaAnnotationsStubs")
|
||||
public void testRetentionPoliciesJavaAnnotationsStubs() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/annotation-collector/testData/collectToFile/retentionPoliciesJavaAnnotationsStubs/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/annotation-collector/testData/collectToFile/retentionPoliciesJavaAnnotationsStubs/");
|
||||
}
|
||||
|
||||
@TestMetadata("retentionPoliciesKotlinAnnotations")
|
||||
public void testRetentionPoliciesKotlinAnnotations() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/annotation-collector/testData/collectToFile/retentionPoliciesKotlinAnnotations/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/annotation-collector/testData/collectToFile/retentionPoliciesKotlinAnnotations/");
|
||||
}
|
||||
|
||||
@TestMetadata("retentionPoliciesKotlinAnnotationsStubs")
|
||||
public void testRetentionPoliciesKotlinAnnotationsStubs() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/annotation-collector/testData/collectToFile/retentionPoliciesKotlinAnnotationsStubs/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/annotation-collector/testData/collectToFile/retentionPoliciesKotlinAnnotationsStubs/");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelAnnotated")
|
||||
public void testTopLevelAnnotated() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/annotation-collector/testData/collectToFile/topLevelAnnotated/");
|
||||
doTest(fileName);
|
||||
runTest("plugins/annotation-collector/testData/collectToFile/topLevelAnnotated/");
|
||||
}
|
||||
}
|
||||
|
||||
+62
-116
@@ -21,22 +21,23 @@ import java.util.regex.Pattern;
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class ClassFileToSourceStubConverterTestGenerated extends AbstractClassFileToSourceStubConverterTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath);
|
||||
}
|
||||
|
||||
@TestMetadata("abstractEnum.kt")
|
||||
public void testAbstractEnum() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/abstractEnum.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/kapt3/kapt3-compiler/testData/converter/abstractEnum.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("abstractMethods.kt")
|
||||
public void testAbstractMethods() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/abstractMethods.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/kapt3/kapt3-compiler/testData/converter/abstractMethods.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("aliasedImports.kt")
|
||||
public void testAliasedImports() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/aliasedImports.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/kapt3/kapt3-compiler/testData/converter/aliasedImports.kt");
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInConverter() throws Exception {
|
||||
@@ -45,331 +46,276 @@ public class ClassFileToSourceStubConverterTestGenerated extends AbstractClassFi
|
||||
|
||||
@TestMetadata("annotations.kt")
|
||||
public void testAnnotations() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/annotations.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/kapt3/kapt3-compiler/testData/converter/annotations.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("annotations2.kt")
|
||||
public void testAnnotations2() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/annotations2.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/kapt3/kapt3-compiler/testData/converter/annotations2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("annotations3.kt")
|
||||
public void testAnnotations3() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/annotations3.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/kapt3/kapt3-compiler/testData/converter/annotations3.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("comments.kt")
|
||||
public void testComments() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/comments.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/kapt3/kapt3-compiler/testData/converter/comments.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("cyrillicClassName.kt")
|
||||
public void testCyrillicClassName() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/cyrillicClassName.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/kapt3/kapt3-compiler/testData/converter/cyrillicClassName.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("dataClass.kt")
|
||||
public void testDataClass() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/dataClass.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/kapt3/kapt3-compiler/testData/converter/dataClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("defaultImpls.kt")
|
||||
public void testDefaultImpls() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/defaultImpls.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/kapt3/kapt3-compiler/testData/converter/defaultImpls.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("enums.kt")
|
||||
public void testEnums() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/enums.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/kapt3/kapt3-compiler/testData/converter/enums.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("errorLocationMapping.kt")
|
||||
public void testErrorLocationMapping() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/errorLocationMapping.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/kapt3/kapt3-compiler/testData/converter/errorLocationMapping.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("fileFacadeJvmName.kt")
|
||||
public void testFileFacadeJvmName() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/fileFacadeJvmName.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/kapt3/kapt3-compiler/testData/converter/fileFacadeJvmName.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("functions.kt")
|
||||
public void testFunctions() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/functions.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/kapt3/kapt3-compiler/testData/converter/functions.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("genericRawSignatures.kt")
|
||||
public void testGenericRawSignatures() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/genericRawSignatures.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/kapt3/kapt3-compiler/testData/converter/genericRawSignatures.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("genericSimple.kt")
|
||||
public void testGenericSimple() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/genericSimple.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/kapt3/kapt3-compiler/testData/converter/genericSimple.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ignoredMembers.kt")
|
||||
public void testIgnoredMembers() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/ignoredMembers.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/kapt3/kapt3-compiler/testData/converter/ignoredMembers.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("importsForErrorTypes.kt")
|
||||
public void testImportsForErrorTypes() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/importsForErrorTypes.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/kapt3/kapt3-compiler/testData/converter/importsForErrorTypes.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("importsKt22083.kt")
|
||||
public void testImportsKt22083() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/importsKt22083.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/kapt3/kapt3-compiler/testData/converter/importsKt22083.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inheritanceSimple.kt")
|
||||
public void testInheritanceSimple() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/inheritanceSimple.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/kapt3/kapt3-compiler/testData/converter/inheritanceSimple.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("innerClassesWithTypeParameters.kt")
|
||||
public void testInnerClassesWithTypeParameters() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/innerClassesWithTypeParameters.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/kapt3/kapt3-compiler/testData/converter/innerClassesWithTypeParameters.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("invalidFieldName.kt")
|
||||
public void testInvalidFieldName() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/invalidFieldName.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/kapt3/kapt3-compiler/testData/converter/invalidFieldName.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("javaKeywords.kt")
|
||||
public void testJavaKeywords() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/javaKeywords.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/kapt3/kapt3-compiler/testData/converter/javaKeywords.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("javaKeywordsInPackageNames.kt")
|
||||
public void testJavaKeywordsInPackageNames() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/javaKeywordsInPackageNames.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/kapt3/kapt3-compiler/testData/converter/javaKeywordsInPackageNames.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("jvmOverloads.kt")
|
||||
public void testJvmOverloads() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/jvmOverloads.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/kapt3/kapt3-compiler/testData/converter/jvmOverloads.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("jvmStatic.kt")
|
||||
public void testJvmStatic() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/jvmStatic.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/kapt3/kapt3-compiler/testData/converter/jvmStatic.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("jvmStaticFieldInParent.kt")
|
||||
public void testJvmStaticFieldInParent() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/jvmStaticFieldInParent.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/kapt3/kapt3-compiler/testData/converter/jvmStaticFieldInParent.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt14996.kt")
|
||||
public void testKt14996() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/kt14996.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/kapt3/kapt3-compiler/testData/converter/kt14996.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt14997.kt")
|
||||
public void testKt14997() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/kt14997.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/kapt3/kapt3-compiler/testData/converter/kt14997.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt14998.kt")
|
||||
public void testKt14998() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/kt14998.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/kapt3/kapt3-compiler/testData/converter/kt14998.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt15145.kt")
|
||||
public void testKt15145() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/kt15145.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/kapt3/kapt3-compiler/testData/converter/kt15145.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt17567.kt")
|
||||
public void testKt17567() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/kt17567.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/kapt3/kapt3-compiler/testData/converter/kt17567.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt18377.kt")
|
||||
public void testKt18377() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/kt18377.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/kapt3/kapt3-compiler/testData/converter/kt18377.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt18682.kt")
|
||||
public void testKt18682() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/kt18682.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/kapt3/kapt3-compiler/testData/converter/kt18682.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt18791.kt")
|
||||
public void testKt18791() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/kt18791.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/kapt3/kapt3-compiler/testData/converter/kt18791.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt19700.kt")
|
||||
public void testKt19700() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/kt19700.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/kapt3/kapt3-compiler/testData/converter/kt19700.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt19750.kt")
|
||||
public void testKt19750() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/kt19750.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/kapt3/kapt3-compiler/testData/converter/kt19750.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("leadingDollars.kt")
|
||||
public void testLeadingDollars() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/leadingDollars.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/kapt3/kapt3-compiler/testData/converter/leadingDollars.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("leadingDollars2.kt")
|
||||
public void testLeadingDollars2() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/leadingDollars2.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/kapt3/kapt3-compiler/testData/converter/leadingDollars2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("mapEntry.kt")
|
||||
public void testMapEntry() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/mapEntry.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/kapt3/kapt3-compiler/testData/converter/mapEntry.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("maxErrorCount.kt")
|
||||
public void testMaxErrorCount() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/maxErrorCount.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/kapt3/kapt3-compiler/testData/converter/maxErrorCount.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("methodParameterNames.kt")
|
||||
public void testMethodParameterNames() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/methodParameterNames.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/kapt3/kapt3-compiler/testData/converter/methodParameterNames.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("methodPropertySignatureClash.kt")
|
||||
public void testMethodPropertySignatureClash() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/methodPropertySignatureClash.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/kapt3/kapt3-compiler/testData/converter/methodPropertySignatureClash.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("modifiers.kt")
|
||||
public void testModifiers() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/modifiers.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/kapt3/kapt3-compiler/testData/converter/modifiers.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("multifileClass.kt")
|
||||
public void testMultifileClass() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/multifileClass.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/kapt3/kapt3-compiler/testData/converter/multifileClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedClasses.kt")
|
||||
public void testNestedClasses() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/nestedClasses.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/kapt3/kapt3-compiler/testData/converter/nestedClasses.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedClasses2.kt")
|
||||
public void testNestedClasses2() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/nestedClasses2.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/kapt3/kapt3-compiler/testData/converter/nestedClasses2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nestedClassesNonRootPackage.kt")
|
||||
public void testNestedClassesNonRootPackage() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/nestedClassesNonRootPackage.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/kapt3/kapt3-compiler/testData/converter/nestedClassesNonRootPackage.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nonExistentClass.kt")
|
||||
public void testNonExistentClass() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/nonExistentClass.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/kapt3/kapt3-compiler/testData/converter/nonExistentClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nonExistentClassTypesConversion.kt")
|
||||
public void testNonExistentClassTypesConversion() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/nonExistentClassTypesConversion.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/kapt3/kapt3-compiler/testData/converter/nonExistentClassTypesConversion.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nonExistentClassWIthoutCorrection.kt")
|
||||
public void testNonExistentClassWIthoutCorrection() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/nonExistentClassWIthoutCorrection.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/kapt3/kapt3-compiler/testData/converter/nonExistentClassWIthoutCorrection.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("primitiveTypes.kt")
|
||||
public void testPrimitiveTypes() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/primitiveTypes.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/kapt3/kapt3-compiler/testData/converter/primitiveTypes.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("propertyAnnotations.kt")
|
||||
public void testPropertyAnnotations() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/propertyAnnotations.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/kapt3/kapt3-compiler/testData/converter/propertyAnnotations.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("repeatableAnnotations.kt")
|
||||
public void testRepeatableAnnotations() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/repeatableAnnotations.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/kapt3/kapt3-compiler/testData/converter/repeatableAnnotations.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("severalPackageParts.kt")
|
||||
public void testSeveralPackageParts() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/severalPackageParts.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/kapt3/kapt3-compiler/testData/converter/severalPackageParts.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("strangeIdentifiers.kt")
|
||||
public void testStrangeIdentifiers() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/strangeIdentifiers.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/kapt3/kapt3-compiler/testData/converter/strangeIdentifiers.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("strangeNames.kt")
|
||||
public void testStrangeNames() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/strangeNames.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/kapt3/kapt3-compiler/testData/converter/strangeNames.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevel.kt")
|
||||
public void testTopLevel() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/topLevel.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/kapt3/kapt3-compiler/testData/converter/topLevel.kt");
|
||||
}
|
||||
}
|
||||
|
||||
+7
-6
@@ -21,25 +21,26 @@ import java.util.regex.Pattern;
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class KotlinKaptContextTestGenerated extends AbstractKotlinKaptContextTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInKotlinRunner() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("plugins/kapt3/kapt3-compiler/testData/kotlinRunner"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
|
||||
}
|
||||
|
||||
@TestMetadata("NestedClasses.kt")
|
||||
public void testNestedClasses() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/kotlinRunner/NestedClasses.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/kapt3/kapt3-compiler/testData/kotlinRunner/NestedClasses.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("Overloads.kt")
|
||||
public void testOverloads() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/kotlinRunner/Overloads.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/kapt3/kapt3-compiler/testData/kotlinRunner/Overloads.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("Simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/kotlinRunner/Simple.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/kapt3/kapt3-compiler/testData/kotlinRunner/Simple.kt");
|
||||
}
|
||||
}
|
||||
|
||||
Generated
+10
-12
@@ -21,43 +21,41 @@ import java.util.regex.Pattern;
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class BlackBoxCodegenTestForNoArgGenerated extends AbstractBlackBoxCodegenTestForNoArg {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInBox() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("plugins/noarg/noarg-cli/testData/box"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JVM, true);
|
||||
}
|
||||
|
||||
@TestMetadata("initializers.kt")
|
||||
public void testInitializers() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/noarg/noarg-cli/testData/box/initializers.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/noarg/noarg-cli/testData/box/initializers.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("initializersWithoutInvokeInitializers.kt")
|
||||
public void testInitializersWithoutInvokeInitializers() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/noarg/noarg-cli/testData/box/initializersWithoutInvokeInitializers.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/noarg/noarg-cli/testData/box/initializersWithoutInvokeInitializers.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt18245.kt")
|
||||
public void testKt18245() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/noarg/noarg-cli/testData/box/kt18245.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/noarg/noarg-cli/testData/box/kt18245.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt18667.kt")
|
||||
public void testKt18667() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/noarg/noarg-cli/testData/box/kt18667.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/noarg/noarg-cli/testData/box/kt18667.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt18668.kt")
|
||||
public void testKt18668() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/noarg/noarg-cli/testData/box/kt18668.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/noarg/noarg-cli/testData/box/kt18668.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/noarg/noarg-cli/testData/box/simple.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/noarg/noarg-cli/testData/box/simple.kt");
|
||||
}
|
||||
}
|
||||
|
||||
Generated
+11
-14
@@ -21,49 +21,46 @@ import java.util.regex.Pattern;
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class BytecodeListingTestForNoArgGenerated extends AbstractBytecodeListingTestForNoArg {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInBytecodeListing() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("plugins/noarg/noarg-cli/testData/bytecodeListing"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
|
||||
}
|
||||
|
||||
@TestMetadata("annoOnNotClass.kt")
|
||||
public void testAnnoOnNotClass() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/noarg/noarg-cli/testData/bytecodeListing/annoOnNotClass.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/noarg/noarg-cli/testData/bytecodeListing/annoOnNotClass.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("defaultParameters.kt")
|
||||
public void testDefaultParameters() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/noarg/noarg-cli/testData/bytecodeListing/defaultParameters.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/noarg/noarg-cli/testData/bytecodeListing/defaultParameters.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inherited.kt")
|
||||
public void testInherited() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/noarg/noarg-cli/testData/bytecodeListing/inherited.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/noarg/noarg-cli/testData/bytecodeListing/inherited.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("noNoArg.kt")
|
||||
public void testNoNoArg() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/noarg/noarg-cli/testData/bytecodeListing/noNoArg.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/noarg/noarg-cli/testData/bytecodeListing/noNoArg.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("severalNoArg.kt")
|
||||
public void testSeveralNoArg() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/noarg/noarg-cli/testData/bytecodeListing/severalNoArg.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/noarg/noarg-cli/testData/bytecodeListing/severalNoArg.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/noarg/noarg-cli/testData/bytecodeListing/simple.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/noarg/noarg-cli/testData/bytecodeListing/simple.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("superTypes.kt")
|
||||
public void testSuperTypes() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/noarg/noarg-cli/testData/bytecodeListing/superTypes.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/noarg/noarg-cli/testData/bytecodeListing/superTypes.kt");
|
||||
}
|
||||
}
|
||||
|
||||
+5
-2
@@ -21,13 +21,16 @@ import java.util.regex.Pattern;
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class SamWithReceiverScriptTestGenerated extends AbstractSamWithReceiverScriptTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInScript() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("plugins/sam-with-receiver/sam-with-receiver-cli/testData/script"), Pattern.compile("^(.+)\\.kts$"), TargetBackend.ANY, true);
|
||||
}
|
||||
|
||||
@TestMetadata("samConversionSimple.kts")
|
||||
public void testSamConversionSimple() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/sam-with-receiver/sam-with-receiver-cli/testData/script/samConversionSimple.kts");
|
||||
doTest(fileName);
|
||||
runTest("plugins/sam-with-receiver/sam-with-receiver-cli/testData/script/samConversionSimple.kts");
|
||||
}
|
||||
}
|
||||
|
||||
+13
-18
@@ -21,61 +21,56 @@ import java.util.regex.Pattern;
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
public class SamWithReceiverTestGenerated extends AbstractSamWithReceiverTest {
|
||||
private void runTest(String testDataFilePath) throws Exception {
|
||||
KotlinTestUtils.runTest(this::doTest, TargetBackend.ANY, testDataFilePath);
|
||||
}
|
||||
|
||||
public void testAllFilesPresentInDiagnostics() throws Exception {
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("plugins/sam-with-receiver/sam-with-receiver-cli/testData/diagnostics"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
|
||||
}
|
||||
|
||||
@TestMetadata("noParameters.kt")
|
||||
public void testNoParameters() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/sam-with-receiver/sam-with-receiver-cli/testData/diagnostics/noParameters.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/sam-with-receiver/sam-with-receiver-cli/testData/diagnostics/noParameters.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("noReturnType.kt")
|
||||
public void testNoReturnType() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/sam-with-receiver/sam-with-receiver-cli/testData/diagnostics/noReturnType.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/sam-with-receiver/sam-with-receiver-cli/testData/diagnostics/noReturnType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("samConversionNoParameters.kt")
|
||||
public void testSamConversionNoParameters() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/sam-with-receiver/sam-with-receiver-cli/testData/diagnostics/samConversionNoParameters.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/sam-with-receiver/sam-with-receiver-cli/testData/diagnostics/samConversionNoParameters.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("samConversionSimple.kt")
|
||||
public void testSamConversionSimple() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/sam-with-receiver/sam-with-receiver-cli/testData/diagnostics/samConversionSimple.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/sam-with-receiver/sam-with-receiver-cli/testData/diagnostics/samConversionSimple.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("samConversionSimpleWithoutAnnotation.kt")
|
||||
public void testSamConversionSimpleWithoutAnnotation() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/sam-with-receiver/sam-with-receiver-cli/testData/diagnostics/samConversionSimpleWithoutAnnotation.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/sam-with-receiver/sam-with-receiver-cli/testData/diagnostics/samConversionSimpleWithoutAnnotation.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("samWithAnnotation.kt")
|
||||
public void testSamWithAnnotation() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/sam-with-receiver/sam-with-receiver-cli/testData/diagnostics/samWithAnnotation.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/sam-with-receiver/sam-with-receiver-cli/testData/diagnostics/samWithAnnotation.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("samWithoutAnnotation.kt")
|
||||
public void testSamWithoutAnnotation() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/sam-with-receiver/sam-with-receiver-cli/testData/diagnostics/samWithoutAnnotation.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/sam-with-receiver/sam-with-receiver-cli/testData/diagnostics/samWithoutAnnotation.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("singleParameter.kt")
|
||||
public void testSingleParameter() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/sam-with-receiver/sam-with-receiver-cli/testData/diagnostics/singleParameter.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/sam-with-receiver/sam-with-receiver-cli/testData/diagnostics/singleParameter.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("singleParameterWithoutAnnotation.kt")
|
||||
public void testSingleParameterWithoutAnnotation() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/sam-with-receiver/sam-with-receiver-cli/testData/diagnostics/singleParameterWithoutAnnotation.kt");
|
||||
doTest(fileName);
|
||||
runTest("plugins/sam-with-receiver/sam-with-receiver-cli/testData/diagnostics/singleParameterWithoutAnnotation.kt");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user