AllOpen: Support @SpringBootTest annotation (KT-18262)
This commit is contained in:
+5
-2
@@ -22,8 +22,11 @@ import org.jetbrains.kotlin.extensions.DeclarationAttributeAltererExtension
|
||||
|
||||
abstract class AbstractBytecodeListingTestForAllOpen : AbstractBytecodeListingTest() {
|
||||
override fun setupEnvironment(environment: KotlinCoreEnvironment) {
|
||||
val annotations = AbstractAllOpenDeclarationAttributeAltererExtension.ANNOTATIONS_FOR_TESTS +
|
||||
AllOpenCommandLineProcessor.SUPPORTED_PRESETS.flatMap { it.value }
|
||||
|
||||
DeclarationAttributeAltererExtension.registerExtension(
|
||||
environment.project, CliAllOpenDeclarationAttributeAltererExtension(
|
||||
AbstractAllOpenDeclarationAttributeAltererExtension.ANNOTATIONS_FOR_TESTS))
|
||||
environment.project,
|
||||
CliAllOpenDeclarationAttributeAltererExtension(annotations))
|
||||
}
|
||||
}
|
||||
+6
@@ -102,6 +102,12 @@ public class BytecodeListingTestForAllOpenGenerated extends AbstractBytecodeList
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("springAnnotations.kt")
|
||||
public void testSpringAnnotations() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/allopen/allopen-cli/testData/bytecodeListing/springAnnotations.kt");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("superClassAnnotation.kt")
|
||||
public void testSuperClassAnnotation() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("plugins/allopen/allopen-cli/testData/bytecodeListing/superClassAnnotation.kt");
|
||||
|
||||
Reference in New Issue
Block a user