Hello, I have an issue with Spring Boot and Junit4...
# announcements
y
Hello, I have an issue with Spring Boot and Junit4 testing
Copy code
@SpringBootTest
class ParsingIntegrationTest(@Autowired val cardPriceService: CardPriceService) {
It gives me this error :
Copy code
java.lang.Exception: Test class should have exactly one public zero-argument constructor
m
You can't use constructor wiring with junit4. Have to define a property in class of appropriate type. Usually lateinit var.