Mattia Tommasone
11/16/2021, 9:24 AM@MockK and using MockkAnnotations.init(this, relaxed = true)Matteo Mirk
11/16/2021, 10:32 AM@ExtendWith(MockKExtension::class) which apparently doesn’t allow setting common properties. Then I had to annotate every field with @RelaxedMockK and make it lateinit var. Not very fond of this solution… I think I’ll revert back to the no annotations form.Mattia Tommasone
11/16/2021, 10:33 AM@ExtendWith with JUnit 5 though, i’ve been using annotations and MockKAnnotations.init() in my JUnit 5 projects 🙂Matteo Mirk
11/16/2021, 10:48 AMlateinit var , I’m afraid it would look too noisy for my taste… let’s see 😄Matteo Mirk
11/16/2021, 11:15 AMinit {} otherwise in order to use a @BeforeAll function I’d have to put that in a companion object or add another annotation to the class.Mattia Tommasone
11/16/2021, 11:22 AMMatteo Mirk
11/16/2021, 11:31 AM