I get "Annotation is not applicable to target loca...
# spek
s
I get "Annotation is not applicable to target local variable" with this code, where
@DatabaseTest
is pretty much just
@DataJpaTest
, but with a couple configurations.
Copy code
@DatabaseTest
@RunWith(SpringRunner::class)
open class ServiceOrderDataServiceComponentTest: Spek({
    describe("a service order") {
        @Autowired var repository: ServiceOrderViewRepository
        @Autowired lateinit var manager: TestEntityManager

        lateinit var service: ServiceOrderDataService
        val translator: ServiceOrderTranslator = ServiceOrderTranslator()