I am trying to test the business logic/services. Using Kotlin in my Spring Boot application, I am trying to instantiate my services, using the test class constructor. But this is not allowed, as I am getting a ParameterResolutionException.
This is my code:
@SpringBootTest
class IntermediateApplicationTests(val ticketService: TicketService) {
@Test
fun contextLoads() {
}
}
How can I achieve this?
Thanks for every help!