Kapt: Add runtime library, move all modules inside the 'kapt3' directory

This commit is contained in:
Yan Zhulanow
2017-11-02 11:15:15 +09:00
parent b74ef72af7
commit fd84ecda54
140 changed files with 110 additions and 58 deletions
@@ -946,7 +946,7 @@ fun main(args: Array<String>) {
} }
} }
testGroup("plugins/kapt3/test", "plugins/kapt3/testData") { testGroup("plugins/kapt3/kapt3-compiler/test", "plugins/kapt3/kapt3-compiler/testData") {
testClass<AbstractClassFileToSourceStubConverterTest> { testClass<AbstractClassFileToSourceStubConverterTest> {
model("converter") model("converter")
} }
@@ -15,6 +15,8 @@ dependencies {
testCompile(projectTests(":compiler:tests-common")) testCompile(projectTests(":compiler:tests-common"))
testCompile(ideaSdkDeps("idea", "idea_rt", "openapi")) testCompile(ideaSdkDeps("idea", "idea_rt", "openapi"))
testCompile(commonDep("junit:junit")) testCompile(commonDep("junit:junit"))
compileOnly(project(":kotlin-annotation-processing-runtime"))
} }
sourceSets { sourceSets {
@@ -22,10 +24,15 @@ sourceSets {
"test" { projectDefault() } "test" { projectDefault() }
} }
runtimeJar {
from(getSourceSetsFrom(":kotlin-annotation-processing-runtime")["main"].output.classesDirs)
}
testsJar {} testsJar {}
projectTest { projectTest {
workingDir = rootDir workingDir = rootDir
dependsOnTaskIfExistsRec("dist", project = rootProject)
} }
runtimeJar() runtimeJar()
@@ -50,7 +50,7 @@ import com.sun.tools.javac.util.List as JavacList
abstract class AbstractKotlinKapt3IntegrationTest : CodegenTestCase() { abstract class AbstractKotlinKapt3IntegrationTest : CodegenTestCase() {
private companion object { private companion object {
val TEST_DATA_DIR = File("plugins/kapt3/testData/kotlinRunner") val TEST_DATA_DIR = File("plugins/kapt3/kapt3-compiler/testData/kotlinRunner")
} }
private var _processors: List<Processor>? = null private var _processors: List<Processor>? = null
@@ -28,293 +28,293 @@ import java.util.regex.Pattern;
/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.TestsPackage}. DO NOT MODIFY MANUALLY */ /** This class is generated by {@link org.jetbrains.kotlin.generators.tests.TestsPackage}. DO NOT MODIFY MANUALLY */
@SuppressWarnings("all") @SuppressWarnings("all")
@TestMetadata("plugins/kapt3/testData/converter") @TestMetadata("plugins/kapt3/kapt3-compiler/testData/converter")
@TestDataPath("$PROJECT_ROOT") @TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public class ClassFileToSourceStubConverterTestGenerated extends AbstractClassFileToSourceStubConverterTest { public class ClassFileToSourceStubConverterTestGenerated extends AbstractClassFileToSourceStubConverterTest {
@TestMetadata("abstractEnum.kt") @TestMetadata("abstractEnum.kt")
public void testAbstractEnum() throws Exception { public void testAbstractEnum() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/testData/converter/abstractEnum.kt"); String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/abstractEnum.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("abstractMethods.kt") @TestMetadata("abstractMethods.kt")
public void testAbstractMethods() throws Exception { public void testAbstractMethods() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/testData/converter/abstractMethods.kt"); String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/abstractMethods.kt");
doTest(fileName); doTest(fileName);
} }
public void testAllFilesPresentInConverter() throws Exception { public void testAllFilesPresentInConverter() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("plugins/kapt3/testData/converter"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("plugins/kapt3/kapt3-compiler/testData/converter"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
} }
@TestMetadata("annotations.kt") @TestMetadata("annotations.kt")
public void testAnnotations() throws Exception { public void testAnnotations() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/testData/converter/annotations.kt"); String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/annotations.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("annotations2.kt") @TestMetadata("annotations2.kt")
public void testAnnotations2() throws Exception { public void testAnnotations2() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/testData/converter/annotations2.kt"); String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/annotations2.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("dataClass.kt") @TestMetadata("dataClass.kt")
public void testDataClass() throws Exception { public void testDataClass() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/testData/converter/dataClass.kt"); String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/dataClass.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("defaultImpls.kt") @TestMetadata("defaultImpls.kt")
public void testDefaultImpls() throws Exception { public void testDefaultImpls() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/testData/converter/defaultImpls.kt"); String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/defaultImpls.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("enums.kt") @TestMetadata("enums.kt")
public void testEnums() throws Exception { public void testEnums() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/testData/converter/enums.kt"); String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/enums.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("fileFacadeJvmName.kt") @TestMetadata("fileFacadeJvmName.kt")
public void testFileFacadeJvmName() throws Exception { public void testFileFacadeJvmName() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/testData/converter/fileFacadeJvmName.kt"); String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/fileFacadeJvmName.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("functions.kt") @TestMetadata("functions.kt")
public void testFunctions() throws Exception { public void testFunctions() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/testData/converter/functions.kt"); String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/functions.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("genericRawSignatures.kt") @TestMetadata("genericRawSignatures.kt")
public void testGenericRawSignatures() throws Exception { public void testGenericRawSignatures() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/testData/converter/genericRawSignatures.kt"); String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/genericRawSignatures.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("genericSimple.kt") @TestMetadata("genericSimple.kt")
public void testGenericSimple() throws Exception { public void testGenericSimple() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/testData/converter/genericSimple.kt"); String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/genericSimple.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("importsForErrorTypes.kt") @TestMetadata("importsForErrorTypes.kt")
public void testImportsForErrorTypes() throws Exception { public void testImportsForErrorTypes() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/testData/converter/importsForErrorTypes.kt"); String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/importsForErrorTypes.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("inheritanceSimple.kt") @TestMetadata("inheritanceSimple.kt")
public void testInheritanceSimple() throws Exception { public void testInheritanceSimple() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/testData/converter/inheritanceSimple.kt"); String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/inheritanceSimple.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("innerClassesWithTypeParameters.kt") @TestMetadata("innerClassesWithTypeParameters.kt")
public void testInnerClassesWithTypeParameters() throws Exception { public void testInnerClassesWithTypeParameters() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/testData/converter/innerClassesWithTypeParameters.kt"); String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/innerClassesWithTypeParameters.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("invalidFieldName.kt") @TestMetadata("invalidFieldName.kt")
public void testInvalidFieldName() throws Exception { public void testInvalidFieldName() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/testData/converter/invalidFieldName.kt"); String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/invalidFieldName.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("javaKeywords.kt") @TestMetadata("javaKeywords.kt")
public void testJavaKeywords() throws Exception { public void testJavaKeywords() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/testData/converter/javaKeywords.kt"); String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/javaKeywords.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("javaKeywordsInPackageNames.kt") @TestMetadata("javaKeywordsInPackageNames.kt")
public void testJavaKeywordsInPackageNames() throws Exception { public void testJavaKeywordsInPackageNames() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/testData/converter/javaKeywordsInPackageNames.kt"); String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/javaKeywordsInPackageNames.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("jvmOverloads.kt") @TestMetadata("jvmOverloads.kt")
public void testJvmOverloads() throws Exception { public void testJvmOverloads() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/testData/converter/jvmOverloads.kt"); String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/jvmOverloads.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("jvmStatic.kt") @TestMetadata("jvmStatic.kt")
public void testJvmStatic() throws Exception { public void testJvmStatic() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/testData/converter/jvmStatic.kt"); String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/jvmStatic.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("jvmStaticFieldInParent.kt") @TestMetadata("jvmStaticFieldInParent.kt")
public void testJvmStaticFieldInParent() throws Exception { public void testJvmStaticFieldInParent() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/testData/converter/jvmStaticFieldInParent.kt"); String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/jvmStaticFieldInParent.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("kt14996.kt") @TestMetadata("kt14996.kt")
public void testKt14996() throws Exception { public void testKt14996() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/testData/converter/kt14996.kt"); String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/kt14996.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("kt14997.kt") @TestMetadata("kt14997.kt")
public void testKt14997() throws Exception { public void testKt14997() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/testData/converter/kt14997.kt"); String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/kt14997.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("kt14998.kt") @TestMetadata("kt14998.kt")
public void testKt14998() throws Exception { public void testKt14998() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/testData/converter/kt14998.kt"); String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/kt14998.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("kt15145.kt") @TestMetadata("kt15145.kt")
public void testKt15145() throws Exception { public void testKt15145() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/testData/converter/kt15145.kt"); String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/kt15145.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("kt17567.kt") @TestMetadata("kt17567.kt")
public void testKt17567() throws Exception { public void testKt17567() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/testData/converter/kt17567.kt"); String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/kt17567.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("kt18377.kt") @TestMetadata("kt18377.kt")
public void testKt18377() throws Exception { public void testKt18377() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/testData/converter/kt18377.kt"); String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/kt18377.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("kt18682.kt") @TestMetadata("kt18682.kt")
public void testKt18682() throws Exception { public void testKt18682() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/testData/converter/kt18682.kt"); String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/kt18682.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("kt18791.kt") @TestMetadata("kt18791.kt")
public void testKt18791() throws Exception { public void testKt18791() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/testData/converter/kt18791.kt"); String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/kt18791.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("kt19700.kt") @TestMetadata("kt19700.kt")
public void testKt19700() throws Exception { public void testKt19700() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/testData/converter/kt19700.kt"); String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/kt19700.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("kt19750.kt") @TestMetadata("kt19750.kt")
public void testKt19750() throws Exception { public void testKt19750() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/testData/converter/kt19750.kt"); String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/kt19750.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("mapEntry.kt") @TestMetadata("mapEntry.kt")
public void testMapEntry() throws Exception { public void testMapEntry() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/testData/converter/mapEntry.kt"); String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/mapEntry.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("methodParameterNames.kt") @TestMetadata("methodParameterNames.kt")
public void testMethodParameterNames() throws Exception { public void testMethodParameterNames() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/testData/converter/methodParameterNames.kt"); String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/methodParameterNames.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("methodPropertySignatureClash.kt") @TestMetadata("methodPropertySignatureClash.kt")
public void testMethodPropertySignatureClash() throws Exception { public void testMethodPropertySignatureClash() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/testData/converter/methodPropertySignatureClash.kt"); String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/methodPropertySignatureClash.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("modifiers.kt") @TestMetadata("modifiers.kt")
public void testModifiers() throws Exception { public void testModifiers() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/testData/converter/modifiers.kt"); String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/modifiers.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("multifileClass.kt") @TestMetadata("multifileClass.kt")
public void testMultifileClass() throws Exception { public void testMultifileClass() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/testData/converter/multifileClass.kt"); String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/multifileClass.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("nestedClasses.kt") @TestMetadata("nestedClasses.kt")
public void testNestedClasses() throws Exception { public void testNestedClasses() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/testData/converter/nestedClasses.kt"); String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/nestedClasses.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("nestedClasses2.kt") @TestMetadata("nestedClasses2.kt")
public void testNestedClasses2() throws Exception { public void testNestedClasses2() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/testData/converter/nestedClasses2.kt"); String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/nestedClasses2.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("nestedClassesNonRootPackage.kt") @TestMetadata("nestedClassesNonRootPackage.kt")
public void testNestedClassesNonRootPackage() throws Exception { public void testNestedClassesNonRootPackage() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/testData/converter/nestedClassesNonRootPackage.kt"); String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/nestedClassesNonRootPackage.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("nonExistentClass.kt") @TestMetadata("nonExistentClass.kt")
public void testNonExistentClass() throws Exception { public void testNonExistentClass() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/testData/converter/nonExistentClass.kt"); String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/nonExistentClass.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("nonExistentClassTypesConversion.kt") @TestMetadata("nonExistentClassTypesConversion.kt")
public void testNonExistentClassTypesConversion() throws Exception { public void testNonExistentClassTypesConversion() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/testData/converter/nonExistentClassTypesConversion.kt"); String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/nonExistentClassTypesConversion.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("nonExistentClassWIthoutCorrection.kt") @TestMetadata("nonExistentClassWIthoutCorrection.kt")
public void testNonExistentClassWIthoutCorrection() throws Exception { public void testNonExistentClassWIthoutCorrection() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/testData/converter/nonExistentClassWIthoutCorrection.kt"); String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/nonExistentClassWIthoutCorrection.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("primitiveTypes.kt") @TestMetadata("primitiveTypes.kt")
public void testPrimitiveTypes() throws Exception { public void testPrimitiveTypes() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/testData/converter/primitiveTypes.kt"); String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/primitiveTypes.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("propertyAnnotations.kt") @TestMetadata("propertyAnnotations.kt")
public void testPropertyAnnotations() throws Exception { public void testPropertyAnnotations() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/testData/converter/propertyAnnotations.kt"); String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/propertyAnnotations.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("severalPackageParts.kt") @TestMetadata("severalPackageParts.kt")
public void testSeveralPackageParts() throws Exception { public void testSeveralPackageParts() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/testData/converter/severalPackageParts.kt"); String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/severalPackageParts.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("strangeIdentifiers.kt") @TestMetadata("strangeIdentifiers.kt")
public void testStrangeIdentifiers() throws Exception { public void testStrangeIdentifiers() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/testData/converter/strangeIdentifiers.kt"); String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/strangeIdentifiers.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("strangeNames.kt") @TestMetadata("strangeNames.kt")
public void testStrangeNames() throws Exception { public void testStrangeNames() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/testData/converter/strangeNames.kt"); String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/strangeNames.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("topLevel.kt") @TestMetadata("topLevel.kt")
public void testTopLevel() throws Exception { public void testTopLevel() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/testData/converter/topLevel.kt"); String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/converter/topLevel.kt");
doTest(fileName); doTest(fileName);
} }
} }
@@ -51,7 +51,7 @@ import javax.lang.model.element.TypeElement
class JavaKaptContextTest { class JavaKaptContextTest {
companion object { companion object {
private val TEST_DATA_DIR = File("plugins/kapt3/testData/runner") private val TEST_DATA_DIR = File("plugins/kapt3/kapt3-compiler/testData/runner")
val messageCollector = PrintingMessageCollector(System.err, MessageRenderer.PLAIN_FULL_PATHS, false) val messageCollector = PrintingMessageCollector(System.err, MessageRenderer.PLAIN_FULL_PATHS, false)
fun simpleProcessor() = object : AbstractProcessor() { fun simpleProcessor() = object : AbstractProcessor() {
@@ -28,29 +28,29 @@ import java.util.regex.Pattern;
/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.TestsPackage}. DO NOT MODIFY MANUALLY */ /** This class is generated by {@link org.jetbrains.kotlin.generators.tests.TestsPackage}. DO NOT MODIFY MANUALLY */
@SuppressWarnings("all") @SuppressWarnings("all")
@TestMetadata("plugins/kapt3/testData/kotlinRunner") @TestMetadata("plugins/kapt3/kapt3-compiler/testData/kotlinRunner")
@TestDataPath("$PROJECT_ROOT") @TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public class KotlinKaptContextTestGenerated extends AbstractKotlinKaptContextTest { public class KotlinKaptContextTestGenerated extends AbstractKotlinKaptContextTest {
public void testAllFilesPresentInKotlinRunner() throws Exception { public void testAllFilesPresentInKotlinRunner() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("plugins/kapt3/testData/kotlinRunner"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true); KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("plugins/kapt3/kapt3-compiler/testData/kotlinRunner"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
} }
@TestMetadata("NestedClasses.kt") @TestMetadata("NestedClasses.kt")
public void testNestedClasses() throws Exception { public void testNestedClasses() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/testData/kotlinRunner/NestedClasses.kt"); String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/kotlinRunner/NestedClasses.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("Overloads.kt") @TestMetadata("Overloads.kt")
public void testOverloads() throws Exception { public void testOverloads() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/testData/kotlinRunner/Overloads.kt"); String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/kotlinRunner/Overloads.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("Simple.kt") @TestMetadata("Simple.kt")
public void testSimple() throws Exception { public void testSimple() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/testData/kotlinRunner/Simple.kt"); String fileName = KotlinTestUtils.navigationMetadata("plugins/kapt3/kapt3-compiler/testData/kotlinRunner/Simple.kt");
doTest(fileName); doTest(fileName);
} }
} }

Some files were not shown because too many files have changed in this diff Show More