Remove tests on kotlin-annotations-android

#KT-44815
This commit is contained in:
Alexander Udalov
2021-02-09 14:02:25 +01:00
parent 3432f581cb
commit 899f75466d
98 changed files with 5 additions and 3276 deletions
@@ -413,20 +413,10 @@ public abstract class CodegenTestCase extends KotlinBaseTest<KotlinBaseTest.Test
File javaSourceDir = writeJavaFiles(files);
configurationKind = extractConfigurationKind(files);
boolean loadAndroidAnnotations = files.stream().anyMatch(
it -> InTextDirectivesUtils.isDirectiveDefined(it.content, "ANDROID_ANNOTATIONS")
);
List<File> classpath = new ArrayList<>();
classpath.add(getAnnotationsJar());
if (loadAndroidAnnotations) {
classpath.add(ForTestCompileRuntime.androidAnnotationsForTests());
}
CompilerConfiguration configuration = createConfiguration(
configurationKind, getTestJdkKind(files), getBackend(),
classpath,
Collections.singletonList(getAnnotationsJar()),
ArraysKt.filterNotNull(new File[] {javaSourceDir}),
files
);
@@ -453,9 +443,6 @@ public abstract class CodegenTestCase extends KotlinBaseTest<KotlinBaseTest.Test
List<String> javaClasspath = new ArrayList<>();
javaClasspath.add(kotlinOut.getPath());
if (loadAndroidAnnotations) {
javaClasspath.add(ForTestCompileRuntime.androidAnnotationsForTests().getPath());
}
updateJavaClasspath(javaClasspath);
javaClassesOutputDirectory = getJavaClassesOutputDirectory();