Hi! Yesterday I published a post how to use Mockk ...
# spring
d
Hi! Yesterday I published a post how to use Mockk to test Spring Boot controllers without Mockito. Please share your thoughts or improvements: https://medium.com/@darych90/kotlin-spring-boot-mockk-6d1c1a6463ac
👍 2
i
Nice one! You could pass the
mockMvc
and
service
via the
ControllerTest
constructor as `@Autowired private val`s. Making your code even cleaner 😉
👍 1
d
Thank you! Totally agree! Will do it!
i
👍🏾