AllOpen: Support @SpringBootTest annotation (KT-18262)

This commit is contained in:
Yan Zhulanow
2017-06-28 22:25:13 +03:00
parent 4dddb00aca
commit 53e193d130
5 changed files with 112 additions and 3 deletions
@@ -0,0 +1,45 @@
// FILE: component.kt
package org.springframework.stereotype
annotation class Component
// FILE: transactional.kt
package org.springframework.transaction.annotation
annotation class Transactional
// FILE: async.kt
package org.springframework.scheduling.annotation
annotation class Async
// FILE: cacheable.kt
package org.springframework.cache.annotation
annotation class Cacheable
// FILE: springBootTest.kt
package org.springframework.boot.test.context
annotation class SpringBootTest
// FILE: main.kt
package test
import org.springframework.stereotype.*
import org.springframework.transaction.annotation.*
import org.springframework.scheduling.annotation.*
import org.springframework.cache.annotation.*
import org.springframework.boot.test.context.*
@Component
class TestComponent
@Transactional
class TestTransactional
@Async
class TestAsync
@Cacheable
class TestCacheable
@SpringBootTest
class TestSpringBootTest
class NoAnno
@@ -0,0 +1,54 @@
@java.lang.annotation.Retention
@kotlin.Metadata
public annotation class org/springframework/boot/test/context/SpringBootTest
@java.lang.annotation.Retention
@kotlin.Metadata
public annotation class org/springframework/cache/annotation/Cacheable
@java.lang.annotation.Retention
@kotlin.Metadata
public annotation class org/springframework/scheduling/annotation/Async
@java.lang.annotation.Retention
@kotlin.Metadata
public annotation class org/springframework/stereotype/Component
@java.lang.annotation.Retention
@kotlin.Metadata
public annotation class org/springframework/transaction/annotation/Transactional
@kotlin.Metadata
public final class test/NoAnno {
public method <init>(): void
}
@org.springframework.scheduling.annotation.Async
@kotlin.Metadata
public class test/TestAsync {
public method <init>(): void
}
@org.springframework.cache.annotation.Cacheable
@kotlin.Metadata
public class test/TestCacheable {
public method <init>(): void
}
@org.springframework.stereotype.Component
@kotlin.Metadata
public class test/TestComponent {
public method <init>(): void
}
@org.springframework.boot.test.context.SpringBootTest
@kotlin.Metadata
public class test/TestSpringBootTest {
public method <init>(): void
}
@org.springframework.transaction.annotation.Transactional
@kotlin.Metadata
public class test/TestTransactional {
public method <init>(): void
}