Merge foreign annotation tests for sources and binaries into single directory
This commit is contained in:
+1
@@ -1,4 +1,5 @@
|
||||
// JSPECIFY_STATE: strict
|
||||
// MUTE_FOR_PSI_CLASS_FILES_READING
|
||||
|
||||
// FILE: AnnotatedBoundsOfWildcard.java
|
||||
import org.jspecify.nullness.*;
|
||||
|
||||
+1
@@ -1,4 +1,5 @@
|
||||
// JSPECIFY_STATE: strict
|
||||
// MUTE_FOR_PSI_CLASS_FILES_READING
|
||||
|
||||
// FILE: AnnotatedBoundsOfWildcard.java
|
||||
import org.jspecify.nullness.*;
|
||||
|
||||
+1
@@ -1,5 +1,6 @@
|
||||
// !LANGUAGE: +ProhibitUsingNullableTypeParameterAgainstNotNullAnnotated
|
||||
// JSPECIFY_STATE: strict
|
||||
// MUTE_FOR_PSI_CLASS_FILES_READING
|
||||
|
||||
// FILE: NonPlatformTypeParameter.java
|
||||
import org.jspecify.nullness.*;
|
||||
|
||||
+1
@@ -1,5 +1,6 @@
|
||||
// !LANGUAGE: +ProhibitUsingNullableTypeParameterAgainstNotNullAnnotated
|
||||
// JSPECIFY_STATE: strict
|
||||
// MUTE_FOR_PSI_CLASS_FILES_READING
|
||||
|
||||
// FILE: NonPlatformTypeParameter.java
|
||||
import org.jspecify.nullness.*;
|
||||
|
||||
+1
@@ -1,4 +1,5 @@
|
||||
// JSPECIFY_STATE: strict
|
||||
// MUTE_FOR_PSI_CLASS_FILES_READING
|
||||
|
||||
// FILE: TypeArgumentsFromParameterBounds.java
|
||||
import org.jspecify.nullness.*;
|
||||
|
||||
+1
@@ -1,4 +1,5 @@
|
||||
// JSPECIFY_STATE: strict
|
||||
// MUTE_FOR_PSI_CLASS_FILES_READING
|
||||
|
||||
// FILE: TypeArgumentsFromParameterBounds.java
|
||||
import org.jspecify.nullness.*;
|
||||
|
||||
+1
@@ -1,4 +1,5 @@
|
||||
// JSPECIFY_STATE: strict
|
||||
// MUTE_FOR_PSI_CLASS_FILES_READING
|
||||
|
||||
// FILE: WildcardsWithDefault.java
|
||||
import org.jspecify.nullness.*;
|
||||
|
||||
+1
@@ -1,4 +1,5 @@
|
||||
// JSPECIFY_STATE: strict
|
||||
// MUTE_FOR_PSI_CLASS_FILES_READING
|
||||
|
||||
// FILE: WildcardsWithDefault.java
|
||||
import org.jspecify.nullness.*;
|
||||
|
||||
+2
@@ -1,3 +1,5 @@
|
||||
// MUTE_FOR_PSI_CLASS_FILES_READING
|
||||
|
||||
// FILE: AnnotatedBoundsOfWildcard.java
|
||||
import org.jspecify.nullness.*;
|
||||
|
||||
|
||||
+2
@@ -1,3 +1,5 @@
|
||||
// MUTE_FOR_PSI_CLASS_FILES_READING
|
||||
|
||||
// FILE: AnnotatedBoundsOfWildcard.java
|
||||
import org.jspecify.nullness.*;
|
||||
|
||||
|
||||
+2
@@ -1,4 +1,6 @@
|
||||
// !LANGUAGE: +ProhibitUsingNullableTypeParameterAgainstNotNullAnnotated
|
||||
// MUTE_FOR_PSI_CLASS_FILES_READING
|
||||
|
||||
// FILE: NonPlatformTypeParameter.java
|
||||
import org.jspecify.nullness.*;
|
||||
|
||||
|
||||
+2
@@ -1,4 +1,6 @@
|
||||
// !LANGUAGE: +ProhibitUsingNullableTypeParameterAgainstNotNullAnnotated
|
||||
// MUTE_FOR_PSI_CLASS_FILES_READING
|
||||
|
||||
// FILE: NonPlatformTypeParameter.java
|
||||
import org.jspecify.nullness.*;
|
||||
|
||||
|
||||
+2
@@ -1,3 +1,5 @@
|
||||
// MUTE_FOR_PSI_CLASS_FILES_READING
|
||||
|
||||
// FILE: TypeArgumentsFromParameterBounds.java
|
||||
import org.jspecify.nullness.*;
|
||||
|
||||
|
||||
+2
@@ -1,3 +1,5 @@
|
||||
// MUTE_FOR_PSI_CLASS_FILES_READING
|
||||
|
||||
// FILE: TypeArgumentsFromParameterBounds.java
|
||||
import org.jspecify.nullness.*;
|
||||
|
||||
|
||||
+2
@@ -1,3 +1,5 @@
|
||||
// MUTE_FOR_PSI_CLASS_FILES_READING
|
||||
|
||||
// FILE: WildcardsWithDefault.java
|
||||
import org.jspecify.nullness.*;
|
||||
|
||||
|
||||
+2
@@ -1,3 +1,5 @@
|
||||
// MUTE_FOR_PSI_CLASS_FILES_READING
|
||||
|
||||
// FILE: WildcardsWithDefault.java
|
||||
import org.jspecify.nullness.*;
|
||||
|
||||
|
||||
+1
-1
@@ -1,9 +1,9 @@
|
||||
// !LANGUAGE: +TypeEnhancementImprovementsInStrictMode +ProhibitUsingNullableTypeParameterAgainstNotNullAnnotated
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_VARIABLE
|
||||
// SKIP_TXT
|
||||
// MUTE_FOR_PSI_CLASS_FILES_READING
|
||||
|
||||
// FILE: ClassTypeParameterBound.java
|
||||
// INCLUDE_JAVA_AS_BINARY
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
+1
-1
@@ -1,9 +1,9 @@
|
||||
// !LANGUAGE: +TypeEnhancementImprovementsInStrictMode +ProhibitUsingNullableTypeParameterAgainstNotNullAnnotated
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_VARIABLE
|
||||
// SKIP_TXT
|
||||
// MUTE_FOR_PSI_CLASS_FILES_READING
|
||||
|
||||
// FILE: ClassTypeParameterBound.java
|
||||
// INCLUDE_JAVA_AS_BINARY
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
+1
-1
@@ -1,9 +1,9 @@
|
||||
// !LANGUAGE: +ProhibitUsingNullableTypeParameterAgainstNotNullAnnotated
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_VARIABLE
|
||||
// SKIP_TXT
|
||||
// MUTE_FOR_PSI_CLASS_FILES_READING
|
||||
|
||||
// FILE: ClassTypeParameterBoundWithWarnings.java
|
||||
// INCLUDE_JAVA_AS_BINARY
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
+1
-1
@@ -1,9 +1,9 @@
|
||||
// !LANGUAGE: +ProhibitUsingNullableTypeParameterAgainstNotNullAnnotated
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_VARIABLE
|
||||
// SKIP_TXT
|
||||
// MUTE_FOR_PSI_CLASS_FILES_READING
|
||||
|
||||
// FILE: ClassTypeParameterBoundWithWarnings.java
|
||||
// INCLUDE_JAVA_AS_BINARY
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
+1
-1
@@ -1,9 +1,9 @@
|
||||
// !LANGUAGE: +TypeEnhancementImprovementsInStrictMode +ProhibitUsingNullableTypeParameterAgainstNotNullAnnotated
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
// SKIP_TXT
|
||||
// MUTE_FOR_PSI_CLASS_FILES_READING
|
||||
|
||||
// FILE: ReturnType.java
|
||||
// INCLUDE_JAVA_AS_BINARY
|
||||
|
||||
import org.jetbrains.annotations.*;
|
||||
|
||||
+1
-1
@@ -1,9 +1,9 @@
|
||||
// !LANGUAGE: +TypeEnhancementImprovementsInStrictMode +ProhibitUsingNullableTypeParameterAgainstNotNullAnnotated
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
// SKIP_TXT
|
||||
// MUTE_FOR_PSI_CLASS_FILES_READING
|
||||
|
||||
// FILE: ReturnType.java
|
||||
// INCLUDE_JAVA_AS_BINARY
|
||||
|
||||
import org.jetbrains.annotations.*;
|
||||
|
||||
+1
-1
@@ -1,9 +1,9 @@
|
||||
// !LANGUAGE: +ProhibitUsingNullableTypeParameterAgainstNotNullAnnotated
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
// SKIP_TXT
|
||||
// MUTE_FOR_PSI_CLASS_FILES_READING
|
||||
|
||||
// FILE: ReturnTypeWithWarnings.java
|
||||
// INCLUDE_JAVA_AS_BINARY
|
||||
|
||||
import org.jetbrains.annotations.*;
|
||||
|
||||
+1
-1
@@ -1,9 +1,9 @@
|
||||
// !LANGUAGE: +ProhibitUsingNullableTypeParameterAgainstNotNullAnnotated
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
// SKIP_TXT
|
||||
// MUTE_FOR_PSI_CLASS_FILES_READING
|
||||
|
||||
// FILE: ReturnTypeWithWarnings.java
|
||||
// INCLUDE_JAVA_AS_BINARY
|
||||
|
||||
import org.jetbrains.annotations.*;
|
||||
|
||||
+1
-1
@@ -1,9 +1,9 @@
|
||||
// !LANGUAGE: +TypeEnhancementImprovementsInStrictMode +ProhibitUsingNullableTypeParameterAgainstNotNullAnnotated
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER -CAST_NEVER_SUCCEEDS
|
||||
// SKIP_TXT
|
||||
// MUTE_FOR_PSI_CLASS_FILES_READING
|
||||
|
||||
// FILE: ValueParameter.java
|
||||
// INCLUDE_JAVA_AS_BINARY
|
||||
|
||||
import org.jetbrains.annotations.*;
|
||||
|
||||
+1
-1
@@ -1,9 +1,9 @@
|
||||
// !LANGUAGE: +TypeEnhancementImprovementsInStrictMode +ProhibitUsingNullableTypeParameterAgainstNotNullAnnotated
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER -CAST_NEVER_SUCCEEDS
|
||||
// SKIP_TXT
|
||||
// MUTE_FOR_PSI_CLASS_FILES_READING
|
||||
|
||||
// FILE: ValueParameter.java
|
||||
// INCLUDE_JAVA_AS_BINARY
|
||||
|
||||
import org.jetbrains.annotations.*;
|
||||
|
||||
+1
-1
@@ -1,9 +1,9 @@
|
||||
// !LANGUAGE: +ProhibitUsingNullableTypeParameterAgainstNotNullAnnotated
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER -CAST_NEVER_SUCCEEDS
|
||||
// SKIP_TXT
|
||||
// MUTE_FOR_PSI_CLASS_FILES_READING
|
||||
|
||||
// FILE: ValueParameterWithWarnings.java
|
||||
// INCLUDE_JAVA_AS_BINARY
|
||||
|
||||
import org.jetbrains.annotations.*;
|
||||
|
||||
+1
-1
@@ -1,9 +1,9 @@
|
||||
// !LANGUAGE: +ProhibitUsingNullableTypeParameterAgainstNotNullAnnotated
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER -CAST_NEVER_SUCCEEDS
|
||||
// SKIP_TXT
|
||||
// MUTE_FOR_PSI_CLASS_FILES_READING
|
||||
|
||||
// FILE: ValueParameterWithWarnings.java
|
||||
// INCLUDE_JAVA_AS_BINARY
|
||||
|
||||
import org.jetbrains.annotations.*;
|
||||
|
||||
+142
-162
@@ -875,188 +875,168 @@ public class ForeignAnnotationsCompiledJavaTestGenerated extends AbstractForeign
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement")
|
||||
@TestMetadata("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class TypeEnhancement {
|
||||
public class Misc {
|
||||
@Test
|
||||
public void testAllFilesPresentInTypeEnhancement() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
public void testAllFilesPresentInMisc() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement/onCompiled")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class OnCompiled {
|
||||
@Test
|
||||
public void testAllFilesPresentInOnCompiled() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement/onCompiled"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("classTypeParameterBound.kt")
|
||||
public void testClassTypeParameterBound() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement/onCompiled/classTypeParameterBound.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("classTypeParameterBoundWithWarnings.kt")
|
||||
public void testClassTypeParameterBoundWithWarnings() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement/onCompiled/classTypeParameterBoundWithWarnings.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("classTypeParameterBoundWithWarnings.fir.kt")
|
||||
public void testClassTypeParameterBoundWithWarnings_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement/onCompiled/classTypeParameterBoundWithWarnings.fir.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("classTypeParameterBound.fir.kt")
|
||||
public void testClassTypeParameterBound_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement/onCompiled/classTypeParameterBound.fir.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("returnType.kt")
|
||||
public void testReturnType() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement/onCompiled/returnType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("returnTypeWithWarnings.kt")
|
||||
public void testReturnTypeWithWarnings() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement/onCompiled/returnTypeWithWarnings.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("returnTypeWithWarnings.fir.kt")
|
||||
public void testReturnTypeWithWarnings_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement/onCompiled/returnTypeWithWarnings.fir.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("returnType.fir.kt")
|
||||
public void testReturnType_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement/onCompiled/returnType.fir.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("valueParameter.kt")
|
||||
public void testValueParameter() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement/onCompiled/valueParameter.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("valueParameterWithWarnings.kt")
|
||||
public void testValueParameterWithWarnings() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement/onCompiled/valueParameterWithWarnings.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("valueParameterWithWarnings.fir.kt")
|
||||
public void testValueParameterWithWarnings_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement/onCompiled/valueParameterWithWarnings.fir.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("valueParameter.fir.kt")
|
||||
public void testValueParameter_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement/onCompiled/valueParameter.fir.kt");
|
||||
}
|
||||
@Test
|
||||
@TestMetadata("annotatedTypeArguments.kt")
|
||||
public void testAnnotatedTypeArguments() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc/annotatedTypeArguments.kt");
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement/onSources")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class OnSources {
|
||||
@Test
|
||||
public void testAllFilesPresentInOnSources() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement/onSources"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
@Test
|
||||
@TestMetadata("annotatedTypeArguments.fir.kt")
|
||||
public void testAnnotatedTypeArguments_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc/annotatedTypeArguments.fir.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("annotatedTypeArguments.kt")
|
||||
public void testAnnotatedTypeArguments() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement/onSources/annotatedTypeArguments.kt");
|
||||
}
|
||||
@Test
|
||||
@TestMetadata("classTypeParameterBound.kt")
|
||||
public void testClassTypeParameterBound() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc/classTypeParameterBound.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("annotatedTypeArguments.fir.kt")
|
||||
public void testAnnotatedTypeArguments_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement/onSources/annotatedTypeArguments.fir.kt");
|
||||
}
|
||||
@Test
|
||||
@TestMetadata("classTypeParameterBoundWithWarnings.kt")
|
||||
public void testClassTypeParameterBoundWithWarnings() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc/classTypeParameterBoundWithWarnings.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("methodWithTypeParameter.kt")
|
||||
public void testMethodWithTypeParameter() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement/onSources/methodWithTypeParameter.kt");
|
||||
}
|
||||
@Test
|
||||
@TestMetadata("classTypeParameterBoundWithWarnings.fir.kt")
|
||||
public void testClassTypeParameterBoundWithWarnings_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc/classTypeParameterBoundWithWarnings.fir.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("methodWithTypeParameter.fir.kt")
|
||||
public void testMethodWithTypeParameter_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement/onSources/methodWithTypeParameter.fir.kt");
|
||||
}
|
||||
@Test
|
||||
@TestMetadata("classTypeParameterBound.fir.kt")
|
||||
public void testClassTypeParameterBound_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc/classTypeParameterBound.fir.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("notNullVarargsOverrides.kt")
|
||||
public void testNotNullVarargsOverrides() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement/onSources/notNullVarargsOverrides.kt");
|
||||
}
|
||||
@Test
|
||||
@TestMetadata("methodWithTypeParameter.kt")
|
||||
public void testMethodWithTypeParameter() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc/methodWithTypeParameter.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("notNullVarargsOverrides.fir.kt")
|
||||
public void testNotNullVarargsOverrides_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement/onSources/notNullVarargsOverrides.fir.kt");
|
||||
}
|
||||
@Test
|
||||
@TestMetadata("methodWithTypeParameter.fir.kt")
|
||||
public void testMethodWithTypeParameter_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc/methodWithTypeParameter.fir.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nullableVarargsOverrides.kt")
|
||||
public void testNullableVarargsOverrides() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement/onSources/nullableVarargsOverrides.kt");
|
||||
}
|
||||
@Test
|
||||
@TestMetadata("notNullVarargsOverrides.kt")
|
||||
public void testNotNullVarargsOverrides() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc/notNullVarargsOverrides.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nullableVarargsOverrides.fir.kt")
|
||||
public void testNullableVarargsOverrides_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement/onSources/nullableVarargsOverrides.fir.kt");
|
||||
}
|
||||
@Test
|
||||
@TestMetadata("notNullVarargsOverrides.fir.kt")
|
||||
public void testNotNullVarargsOverrides_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc/notNullVarargsOverrides.fir.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("returnTypeDifferentConstructor.kt")
|
||||
public void testReturnTypeDifferentConstructor() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement/onSources/returnTypeDifferentConstructor.kt");
|
||||
}
|
||||
@Test
|
||||
@TestMetadata("nullableVarargsOverrides.kt")
|
||||
public void testNullableVarargsOverrides() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc/nullableVarargsOverrides.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("returnTypeDifferentConstructor.fir.kt")
|
||||
public void testReturnTypeDifferentConstructor_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement/onSources/returnTypeDifferentConstructor.fir.kt");
|
||||
}
|
||||
@Test
|
||||
@TestMetadata("nullableVarargsOverrides.fir.kt")
|
||||
public void testNullableVarargsOverrides_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc/nullableVarargsOverrides.fir.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("returnTypeOverrideInKotlin.kt")
|
||||
public void testReturnTypeOverrideInKotlin() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement/onSources/returnTypeOverrideInKotlin.kt");
|
||||
}
|
||||
@Test
|
||||
@TestMetadata("returnType.kt")
|
||||
public void testReturnType() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc/returnType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("returnTypeOverrideInKotlin.fir.kt")
|
||||
public void testReturnTypeOverrideInKotlin_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement/onSources/returnTypeOverrideInKotlin.fir.kt");
|
||||
}
|
||||
@Test
|
||||
@TestMetadata("returnTypeDifferentConstructor.kt")
|
||||
public void testReturnTypeDifferentConstructor() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc/returnTypeDifferentConstructor.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement/onSources/simple.kt");
|
||||
}
|
||||
@Test
|
||||
@TestMetadata("returnTypeDifferentConstructor.fir.kt")
|
||||
public void testReturnTypeDifferentConstructor_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc/returnTypeDifferentConstructor.fir.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("simple.fir.kt")
|
||||
public void testSimple_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement/onSources/simple.fir.kt");
|
||||
}
|
||||
@Test
|
||||
@TestMetadata("returnTypeOverrideInKotlin.kt")
|
||||
public void testReturnTypeOverrideInKotlin() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc/returnTypeOverrideInKotlin.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("returnTypeOverrideInKotlin.fir.kt")
|
||||
public void testReturnTypeOverrideInKotlin_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc/returnTypeOverrideInKotlin.fir.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("returnTypeWithWarnings.kt")
|
||||
public void testReturnTypeWithWarnings() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc/returnTypeWithWarnings.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("returnTypeWithWarnings.fir.kt")
|
||||
public void testReturnTypeWithWarnings_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc/returnTypeWithWarnings.fir.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("returnType.fir.kt")
|
||||
public void testReturnType_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc/returnType.fir.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc/simple.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("simple.fir.kt")
|
||||
public void testSimple_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc/simple.fir.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("valueParameter.kt")
|
||||
public void testValueParameter() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc/valueParameter.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("valueParameterWithWarnings.kt")
|
||||
public void testValueParameterWithWarnings() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc/valueParameterWithWarnings.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("valueParameterWithWarnings.fir.kt")
|
||||
public void testValueParameterWithWarnings_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc/valueParameterWithWarnings.fir.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("valueParameter.fir.kt")
|
||||
public void testValueParameter_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc/valueParameter.fir.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+415
-83
@@ -543,7 +543,7 @@ public class ForeignAnnotationsCompiledJavaWithPsiClassReadingTestGenerated exte
|
||||
public class Java8Tests {
|
||||
@Test
|
||||
public void testAllFilesPresentInJava8Tests() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests"), Pattern.compile("^(.+)\\.kt$"), null, true, "jspecify", "typeEnhancement/onCompiled");
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -564,6 +564,276 @@ public class ForeignAnnotationsCompiledJavaWithPsiClassReadingTestGenerated exte
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeUseOnObject.kt");
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/jspecify")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class Jspecify {
|
||||
@Test
|
||||
public void testAllFilesPresentInJspecify() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/jspecify"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/jspecify/strictMode")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class StrictMode {
|
||||
@Test
|
||||
public void testAllFilesPresentInStrictMode() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/jspecify/strictMode"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("AnnotatedBoundsOfWildcard.kt")
|
||||
public void testAnnotatedBoundsOfWildcard() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/jspecify/strictMode/AnnotatedBoundsOfWildcard.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("AnnotatedBoundsOfWildcard.fir.kt")
|
||||
public void testAnnotatedBoundsOfWildcard_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/jspecify/strictMode/AnnotatedBoundsOfWildcard.fir.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("Defaults.kt")
|
||||
public void testDefaults() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/jspecify/strictMode/Defaults.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("Defaults.fir.kt")
|
||||
public void testDefaults_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/jspecify/strictMode/Defaults.fir.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("IgnoreAnnotations.kt")
|
||||
public void testIgnoreAnnotations() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/jspecify/strictMode/IgnoreAnnotations.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("IgnoreAnnotations.fir.kt")
|
||||
public void testIgnoreAnnotations_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/jspecify/strictMode/IgnoreAnnotations.fir.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("NonPlatformTypeParameter.kt")
|
||||
public void testNonPlatformTypeParameter() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/jspecify/strictMode/NonPlatformTypeParameter.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("NonPlatformTypeParameter.fir.kt")
|
||||
public void testNonPlatformTypeParameter_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/jspecify/strictMode/NonPlatformTypeParameter.fir.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("NullnessUnspecifiedTypeParameter.kt")
|
||||
public void testNullnessUnspecifiedTypeParameter() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/jspecify/strictMode/NullnessUnspecifiedTypeParameter.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("NullnessUnspecifiedTypeParameter.fir.kt")
|
||||
public void testNullnessUnspecifiedTypeParameter_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/jspecify/strictMode/NullnessUnspecifiedTypeParameter.fir.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("SelfType.kt")
|
||||
public void testSelfType() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/jspecify/strictMode/SelfType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("SelfType.fir.kt")
|
||||
public void testSelfType_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/jspecify/strictMode/SelfType.fir.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("Simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/jspecify/strictMode/Simple.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("Simple.fir.kt")
|
||||
public void testSimple_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/jspecify/strictMode/Simple.fir.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("TypeArgumentsFromParameterBounds.kt")
|
||||
public void testTypeArgumentsFromParameterBounds() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/jspecify/strictMode/TypeArgumentsFromParameterBounds.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("TypeArgumentsFromParameterBounds.fir.kt")
|
||||
public void testTypeArgumentsFromParameterBounds_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/jspecify/strictMode/TypeArgumentsFromParameterBounds.fir.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("TypeParameterBounds.kt")
|
||||
public void testTypeParameterBounds() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/jspecify/strictMode/TypeParameterBounds.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("TypeParameterBounds.fir.kt")
|
||||
public void testTypeParameterBounds_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/jspecify/strictMode/TypeParameterBounds.fir.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("WildcardsWithDefault.kt")
|
||||
public void testWildcardsWithDefault() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/jspecify/strictMode/WildcardsWithDefault.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("WildcardsWithDefault.fir.kt")
|
||||
public void testWildcardsWithDefault_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/jspecify/strictMode/WildcardsWithDefault.fir.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/jspecify/warnMode")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class WarnMode {
|
||||
@Test
|
||||
public void testAllFilesPresentInWarnMode() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/jspecify/warnMode"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("AnnotatedBoundsOfWildcard.kt")
|
||||
public void testAnnotatedBoundsOfWildcard() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/jspecify/warnMode/AnnotatedBoundsOfWildcard.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("AnnotatedBoundsOfWildcard.fir.kt")
|
||||
public void testAnnotatedBoundsOfWildcard_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/jspecify/warnMode/AnnotatedBoundsOfWildcard.fir.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("Defaults.kt")
|
||||
public void testDefaults() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/jspecify/warnMode/Defaults.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("Defaults.fir.kt")
|
||||
public void testDefaults_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/jspecify/warnMode/Defaults.fir.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("IgnoreAnnotations.kt")
|
||||
public void testIgnoreAnnotations() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/jspecify/warnMode/IgnoreAnnotations.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("IgnoreAnnotations.fir.kt")
|
||||
public void testIgnoreAnnotations_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/jspecify/warnMode/IgnoreAnnotations.fir.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("NonPlatformTypeParameter.kt")
|
||||
public void testNonPlatformTypeParameter() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/jspecify/warnMode/NonPlatformTypeParameter.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("NonPlatformTypeParameter.fir.kt")
|
||||
public void testNonPlatformTypeParameter_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/jspecify/warnMode/NonPlatformTypeParameter.fir.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("NullnessUnspecifiedTypeParameter.kt")
|
||||
public void testNullnessUnspecifiedTypeParameter() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/jspecify/warnMode/NullnessUnspecifiedTypeParameter.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("NullnessUnspecifiedTypeParameter.fir.kt")
|
||||
public void testNullnessUnspecifiedTypeParameter_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/jspecify/warnMode/NullnessUnspecifiedTypeParameter.fir.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("SelfType.kt")
|
||||
public void testSelfType() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/jspecify/warnMode/SelfType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("SelfType.fir.kt")
|
||||
public void testSelfType_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/jspecify/warnMode/SelfType.fir.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("Simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/jspecify/warnMode/Simple.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("Simple.fir.kt")
|
||||
public void testSimple_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/jspecify/warnMode/Simple.fir.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("TypeArgumentsFromParameterBounds.kt")
|
||||
public void testTypeArgumentsFromParameterBounds() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/jspecify/warnMode/TypeArgumentsFromParameterBounds.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("TypeArgumentsFromParameterBounds.fir.kt")
|
||||
public void testTypeArgumentsFromParameterBounds_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/jspecify/warnMode/TypeArgumentsFromParameterBounds.fir.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("TypeParameterBounds.kt")
|
||||
public void testTypeParameterBounds() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/jspecify/warnMode/TypeParameterBounds.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("TypeParameterBounds.fir.kt")
|
||||
public void testTypeParameterBounds_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/jspecify/warnMode/TypeParameterBounds.fir.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("WildcardsWithDefault.kt")
|
||||
public void testWildcardsWithDefault() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/jspecify/warnMode/WildcardsWithDefault.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("WildcardsWithDefault.fir.kt")
|
||||
public void testWildcardsWithDefault_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/jspecify/warnMode/WildcardsWithDefault.fir.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/jsr305")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@@ -605,106 +875,168 @@ public class ForeignAnnotationsCompiledJavaWithPsiClassReadingTestGenerated exte
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement")
|
||||
@TestMetadata("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class TypeEnhancement {
|
||||
public class Misc {
|
||||
@Test
|
||||
public void testAllFilesPresentInTypeEnhancement() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement"), Pattern.compile("^(.+)\\.kt$"), null, true, "onCompiled");
|
||||
public void testAllFilesPresentInMisc() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement/onSources")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class OnSources {
|
||||
@Test
|
||||
public void testAllFilesPresentInOnSources() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement/onSources"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
@Test
|
||||
@TestMetadata("annotatedTypeArguments.kt")
|
||||
public void testAnnotatedTypeArguments() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc/annotatedTypeArguments.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("annotatedTypeArguments.kt")
|
||||
public void testAnnotatedTypeArguments() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement/onSources/annotatedTypeArguments.kt");
|
||||
}
|
||||
@Test
|
||||
@TestMetadata("annotatedTypeArguments.fir.kt")
|
||||
public void testAnnotatedTypeArguments_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc/annotatedTypeArguments.fir.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("annotatedTypeArguments.fir.kt")
|
||||
public void testAnnotatedTypeArguments_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement/onSources/annotatedTypeArguments.fir.kt");
|
||||
}
|
||||
@Test
|
||||
@TestMetadata("classTypeParameterBound.kt")
|
||||
public void testClassTypeParameterBound() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc/classTypeParameterBound.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("methodWithTypeParameter.kt")
|
||||
public void testMethodWithTypeParameter() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement/onSources/methodWithTypeParameter.kt");
|
||||
}
|
||||
@Test
|
||||
@TestMetadata("classTypeParameterBoundWithWarnings.kt")
|
||||
public void testClassTypeParameterBoundWithWarnings() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc/classTypeParameterBoundWithWarnings.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("methodWithTypeParameter.fir.kt")
|
||||
public void testMethodWithTypeParameter_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement/onSources/methodWithTypeParameter.fir.kt");
|
||||
}
|
||||
@Test
|
||||
@TestMetadata("classTypeParameterBoundWithWarnings.fir.kt")
|
||||
public void testClassTypeParameterBoundWithWarnings_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc/classTypeParameterBoundWithWarnings.fir.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("notNullVarargsOverrides.kt")
|
||||
public void testNotNullVarargsOverrides() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement/onSources/notNullVarargsOverrides.kt");
|
||||
}
|
||||
@Test
|
||||
@TestMetadata("classTypeParameterBound.fir.kt")
|
||||
public void testClassTypeParameterBound_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc/classTypeParameterBound.fir.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("notNullVarargsOverrides.fir.kt")
|
||||
public void testNotNullVarargsOverrides_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement/onSources/notNullVarargsOverrides.fir.kt");
|
||||
}
|
||||
@Test
|
||||
@TestMetadata("methodWithTypeParameter.kt")
|
||||
public void testMethodWithTypeParameter() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc/methodWithTypeParameter.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nullableVarargsOverrides.kt")
|
||||
public void testNullableVarargsOverrides() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement/onSources/nullableVarargsOverrides.kt");
|
||||
}
|
||||
@Test
|
||||
@TestMetadata("methodWithTypeParameter.fir.kt")
|
||||
public void testMethodWithTypeParameter_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc/methodWithTypeParameter.fir.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nullableVarargsOverrides.fir.kt")
|
||||
public void testNullableVarargsOverrides_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement/onSources/nullableVarargsOverrides.fir.kt");
|
||||
}
|
||||
@Test
|
||||
@TestMetadata("notNullVarargsOverrides.kt")
|
||||
public void testNotNullVarargsOverrides() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc/notNullVarargsOverrides.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("returnTypeDifferentConstructor.kt")
|
||||
public void testReturnTypeDifferentConstructor() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement/onSources/returnTypeDifferentConstructor.kt");
|
||||
}
|
||||
@Test
|
||||
@TestMetadata("notNullVarargsOverrides.fir.kt")
|
||||
public void testNotNullVarargsOverrides_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc/notNullVarargsOverrides.fir.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("returnTypeDifferentConstructor.fir.kt")
|
||||
public void testReturnTypeDifferentConstructor_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement/onSources/returnTypeDifferentConstructor.fir.kt");
|
||||
}
|
||||
@Test
|
||||
@TestMetadata("nullableVarargsOverrides.kt")
|
||||
public void testNullableVarargsOverrides() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc/nullableVarargsOverrides.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("returnTypeOverrideInKotlin.kt")
|
||||
public void testReturnTypeOverrideInKotlin() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement/onSources/returnTypeOverrideInKotlin.kt");
|
||||
}
|
||||
@Test
|
||||
@TestMetadata("nullableVarargsOverrides.fir.kt")
|
||||
public void testNullableVarargsOverrides_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc/nullableVarargsOverrides.fir.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("returnTypeOverrideInKotlin.fir.kt")
|
||||
public void testReturnTypeOverrideInKotlin_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement/onSources/returnTypeOverrideInKotlin.fir.kt");
|
||||
}
|
||||
@Test
|
||||
@TestMetadata("returnType.kt")
|
||||
public void testReturnType() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc/returnType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement/onSources/simple.kt");
|
||||
}
|
||||
@Test
|
||||
@TestMetadata("returnTypeDifferentConstructor.kt")
|
||||
public void testReturnTypeDifferentConstructor() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc/returnTypeDifferentConstructor.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("simple.fir.kt")
|
||||
public void testSimple_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement/onSources/simple.fir.kt");
|
||||
}
|
||||
@Test
|
||||
@TestMetadata("returnTypeDifferentConstructor.fir.kt")
|
||||
public void testReturnTypeDifferentConstructor_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc/returnTypeDifferentConstructor.fir.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("returnTypeOverrideInKotlin.kt")
|
||||
public void testReturnTypeOverrideInKotlin() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc/returnTypeOverrideInKotlin.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("returnTypeOverrideInKotlin.fir.kt")
|
||||
public void testReturnTypeOverrideInKotlin_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc/returnTypeOverrideInKotlin.fir.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("returnTypeWithWarnings.kt")
|
||||
public void testReturnTypeWithWarnings() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc/returnTypeWithWarnings.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("returnTypeWithWarnings.fir.kt")
|
||||
public void testReturnTypeWithWarnings_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc/returnTypeWithWarnings.fir.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("returnType.fir.kt")
|
||||
public void testReturnType_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc/returnType.fir.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc/simple.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("simple.fir.kt")
|
||||
public void testSimple_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc/simple.fir.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("valueParameter.kt")
|
||||
public void testValueParameter() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc/valueParameter.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("valueParameterWithWarnings.kt")
|
||||
public void testValueParameterWithWarnings() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc/valueParameterWithWarnings.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("valueParameterWithWarnings.fir.kt")
|
||||
public void testValueParameterWithWarnings_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc/valueParameterWithWarnings.fir.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("valueParameter.fir.kt")
|
||||
public void testValueParameter_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc/valueParameter.fir.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+142
-162
@@ -875,188 +875,168 @@ public class ForeignAnnotationsSourceJavaTestGenerated extends AbstractForeignAn
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement")
|
||||
@TestMetadata("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class TypeEnhancement {
|
||||
public class Misc {
|
||||
@Test
|
||||
public void testAllFilesPresentInTypeEnhancement() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
public void testAllFilesPresentInMisc() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement/onCompiled")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class OnCompiled {
|
||||
@Test
|
||||
public void testAllFilesPresentInOnCompiled() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement/onCompiled"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("classTypeParameterBound.kt")
|
||||
public void testClassTypeParameterBound() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement/onCompiled/classTypeParameterBound.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("classTypeParameterBoundWithWarnings.kt")
|
||||
public void testClassTypeParameterBoundWithWarnings() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement/onCompiled/classTypeParameterBoundWithWarnings.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("classTypeParameterBoundWithWarnings.fir.kt")
|
||||
public void testClassTypeParameterBoundWithWarnings_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement/onCompiled/classTypeParameterBoundWithWarnings.fir.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("classTypeParameterBound.fir.kt")
|
||||
public void testClassTypeParameterBound_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement/onCompiled/classTypeParameterBound.fir.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("returnType.kt")
|
||||
public void testReturnType() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement/onCompiled/returnType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("returnTypeWithWarnings.kt")
|
||||
public void testReturnTypeWithWarnings() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement/onCompiled/returnTypeWithWarnings.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("returnTypeWithWarnings.fir.kt")
|
||||
public void testReturnTypeWithWarnings_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement/onCompiled/returnTypeWithWarnings.fir.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("returnType.fir.kt")
|
||||
public void testReturnType_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement/onCompiled/returnType.fir.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("valueParameter.kt")
|
||||
public void testValueParameter() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement/onCompiled/valueParameter.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("valueParameterWithWarnings.kt")
|
||||
public void testValueParameterWithWarnings() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement/onCompiled/valueParameterWithWarnings.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("valueParameterWithWarnings.fir.kt")
|
||||
public void testValueParameterWithWarnings_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement/onCompiled/valueParameterWithWarnings.fir.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("valueParameter.fir.kt")
|
||||
public void testValueParameter_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement/onCompiled/valueParameter.fir.kt");
|
||||
}
|
||||
@Test
|
||||
@TestMetadata("annotatedTypeArguments.kt")
|
||||
public void testAnnotatedTypeArguments() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc/annotatedTypeArguments.kt");
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement/onSources")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class OnSources {
|
||||
@Test
|
||||
public void testAllFilesPresentInOnSources() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement/onSources"), Pattern.compile("^(.+)\\.kt$"), null, true);
|
||||
}
|
||||
@Test
|
||||
@TestMetadata("annotatedTypeArguments.fir.kt")
|
||||
public void testAnnotatedTypeArguments_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc/annotatedTypeArguments.fir.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("annotatedTypeArguments.kt")
|
||||
public void testAnnotatedTypeArguments() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement/onSources/annotatedTypeArguments.kt");
|
||||
}
|
||||
@Test
|
||||
@TestMetadata("classTypeParameterBound.kt")
|
||||
public void testClassTypeParameterBound() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc/classTypeParameterBound.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("annotatedTypeArguments.fir.kt")
|
||||
public void testAnnotatedTypeArguments_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement/onSources/annotatedTypeArguments.fir.kt");
|
||||
}
|
||||
@Test
|
||||
@TestMetadata("classTypeParameterBoundWithWarnings.kt")
|
||||
public void testClassTypeParameterBoundWithWarnings() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc/classTypeParameterBoundWithWarnings.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("methodWithTypeParameter.kt")
|
||||
public void testMethodWithTypeParameter() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement/onSources/methodWithTypeParameter.kt");
|
||||
}
|
||||
@Test
|
||||
@TestMetadata("classTypeParameterBoundWithWarnings.fir.kt")
|
||||
public void testClassTypeParameterBoundWithWarnings_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc/classTypeParameterBoundWithWarnings.fir.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("methodWithTypeParameter.fir.kt")
|
||||
public void testMethodWithTypeParameter_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement/onSources/methodWithTypeParameter.fir.kt");
|
||||
}
|
||||
@Test
|
||||
@TestMetadata("classTypeParameterBound.fir.kt")
|
||||
public void testClassTypeParameterBound_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc/classTypeParameterBound.fir.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("notNullVarargsOverrides.kt")
|
||||
public void testNotNullVarargsOverrides() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement/onSources/notNullVarargsOverrides.kt");
|
||||
}
|
||||
@Test
|
||||
@TestMetadata("methodWithTypeParameter.kt")
|
||||
public void testMethodWithTypeParameter() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc/methodWithTypeParameter.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("notNullVarargsOverrides.fir.kt")
|
||||
public void testNotNullVarargsOverrides_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement/onSources/notNullVarargsOverrides.fir.kt");
|
||||
}
|
||||
@Test
|
||||
@TestMetadata("methodWithTypeParameter.fir.kt")
|
||||
public void testMethodWithTypeParameter_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc/methodWithTypeParameter.fir.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nullableVarargsOverrides.kt")
|
||||
public void testNullableVarargsOverrides() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement/onSources/nullableVarargsOverrides.kt");
|
||||
}
|
||||
@Test
|
||||
@TestMetadata("notNullVarargsOverrides.kt")
|
||||
public void testNotNullVarargsOverrides() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc/notNullVarargsOverrides.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("nullableVarargsOverrides.fir.kt")
|
||||
public void testNullableVarargsOverrides_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement/onSources/nullableVarargsOverrides.fir.kt");
|
||||
}
|
||||
@Test
|
||||
@TestMetadata("notNullVarargsOverrides.fir.kt")
|
||||
public void testNotNullVarargsOverrides_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc/notNullVarargsOverrides.fir.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("returnTypeDifferentConstructor.kt")
|
||||
public void testReturnTypeDifferentConstructor() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement/onSources/returnTypeDifferentConstructor.kt");
|
||||
}
|
||||
@Test
|
||||
@TestMetadata("nullableVarargsOverrides.kt")
|
||||
public void testNullableVarargsOverrides() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc/nullableVarargsOverrides.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("returnTypeDifferentConstructor.fir.kt")
|
||||
public void testReturnTypeDifferentConstructor_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement/onSources/returnTypeDifferentConstructor.fir.kt");
|
||||
}
|
||||
@Test
|
||||
@TestMetadata("nullableVarargsOverrides.fir.kt")
|
||||
public void testNullableVarargsOverrides_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc/nullableVarargsOverrides.fir.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("returnTypeOverrideInKotlin.kt")
|
||||
public void testReturnTypeOverrideInKotlin() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement/onSources/returnTypeOverrideInKotlin.kt");
|
||||
}
|
||||
@Test
|
||||
@TestMetadata("returnType.kt")
|
||||
public void testReturnType() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc/returnType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("returnTypeOverrideInKotlin.fir.kt")
|
||||
public void testReturnTypeOverrideInKotlin_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement/onSources/returnTypeOverrideInKotlin.fir.kt");
|
||||
}
|
||||
@Test
|
||||
@TestMetadata("returnTypeDifferentConstructor.kt")
|
||||
public void testReturnTypeDifferentConstructor() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc/returnTypeDifferentConstructor.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement/onSources/simple.kt");
|
||||
}
|
||||
@Test
|
||||
@TestMetadata("returnTypeDifferentConstructor.fir.kt")
|
||||
public void testReturnTypeDifferentConstructor_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc/returnTypeDifferentConstructor.fir.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("simple.fir.kt")
|
||||
public void testSimple_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/typeEnhancement/onSources/simple.fir.kt");
|
||||
}
|
||||
@Test
|
||||
@TestMetadata("returnTypeOverrideInKotlin.kt")
|
||||
public void testReturnTypeOverrideInKotlin() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc/returnTypeOverrideInKotlin.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("returnTypeOverrideInKotlin.fir.kt")
|
||||
public void testReturnTypeOverrideInKotlin_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc/returnTypeOverrideInKotlin.fir.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("returnTypeWithWarnings.kt")
|
||||
public void testReturnTypeWithWarnings() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc/returnTypeWithWarnings.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("returnTypeWithWarnings.fir.kt")
|
||||
public void testReturnTypeWithWarnings_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc/returnTypeWithWarnings.fir.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("returnType.fir.kt")
|
||||
public void testReturnType_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc/returnType.fir.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc/simple.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("simple.fir.kt")
|
||||
public void testSimple_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc/simple.fir.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("valueParameter.kt")
|
||||
public void testValueParameter() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc/valueParameter.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("valueParameterWithWarnings.kt")
|
||||
public void testValueParameterWithWarnings() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc/valueParameterWithWarnings.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("valueParameterWithWarnings.fir.kt")
|
||||
public void testValueParameterWithWarnings_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc/valueParameterWithWarnings.fir.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("valueParameter.fir.kt")
|
||||
public void testValueParameter_fir() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc/valueParameter.fir.kt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+4
@@ -37,4 +37,8 @@ object ForeignAnnotationsDirectives : SimpleDirectivesContainer() {
|
||||
val SOURCE_RETENTION_ANNOTATIONS by directive(
|
||||
description = "Skip test against compiled annotation because of their Source retention"
|
||||
)
|
||||
|
||||
val MUTE_FOR_PSI_CLASS_FILES_READING by directive(
|
||||
description = "Skip test if psi class files reading is used"
|
||||
)
|
||||
}
|
||||
|
||||
+3
@@ -29,6 +29,7 @@ import org.jetbrains.kotlin.test.model.FrontendKinds
|
||||
import org.jetbrains.kotlin.test.preprocessors.JspecifyMarksCleanupPreprocessor
|
||||
import org.jetbrains.kotlin.test.services.configuration.*
|
||||
import org.jetbrains.kotlin.test.services.jvm.ForeignAnnotationAgainstCompiledJavaTestSuppressor
|
||||
import org.jetbrains.kotlin.test.services.jvm.PsiClassFilesReadingForCompiledJavaTestSuppressor
|
||||
import org.jetbrains.kotlin.test.services.sourceProviders.AdditionalDiagnosticsSourceFilesProvider
|
||||
import org.jetbrains.kotlin.test.services.sourceProviders.CoroutineHelpersSourceFilesProvider
|
||||
|
||||
@@ -116,6 +117,8 @@ abstract class AbstractForeignAnnotationsCompiledJavaWithPsiClassReadingTest : A
|
||||
defaultDirectives {
|
||||
+USE_PSI_CLASS_FILES_READING
|
||||
}
|
||||
|
||||
useMetaTestConfigurators(::PsiClassFilesReadingForCompiledJavaTestSuppressor)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
/*
|
||||
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.test.services.jvm
|
||||
|
||||
import org.jetbrains.kotlin.test.directives.ForeignAnnotationsDirectives.MUTE_FOR_PSI_CLASS_FILES_READING
|
||||
import org.jetbrains.kotlin.test.services.MetaTestConfigurator
|
||||
import org.jetbrains.kotlin.test.services.TestServices
|
||||
import org.jetbrains.kotlin.test.services.moduleStructure
|
||||
import org.jetbrains.kotlin.test.utils.isDirectiveDefined
|
||||
|
||||
class PsiClassFilesReadingForCompiledJavaTestSuppressor(testServices: TestServices) : MetaTestConfigurator(testServices) {
|
||||
override fun shouldSkipTest(): Boolean {
|
||||
val testFile = testServices.moduleStructure.originalTestDataFiles.first()
|
||||
return testFile.isDirectiveDefined("// ${MUTE_FOR_PSI_CLASS_FILES_READING.name}")
|
||||
}
|
||||
}
|
||||
+1
-2
@@ -61,8 +61,7 @@ fun generateJUnit5CompilerTests(args: Array<String>) {
|
||||
|
||||
testClass<AbstractForeignAnnotationsCompiledJavaWithPsiClassReadingTest> {
|
||||
model("diagnostics/foreignAnnotationsTests/tests")
|
||||
// TODO: remove exclusion of these dirs after advance dependent intellij platform
|
||||
model("diagnostics/foreignAnnotationsTests/java8Tests", excludeDirs = listOf("jspecify", "typeEnhancement/onCompiled"))
|
||||
model("diagnostics/foreignAnnotationsTests/java8Tests",)
|
||||
model("diagnostics/foreignAnnotationsTests/java9Tests")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user