Mattia Tommasone11/16/2021, 9:24 AM
MockkAnnotations.init(this, relaxed = true)
Matteo Mirk11/16/2021, 10:32 AM
which apparently doesn’t allow setting common properties. Then I had to annotate every field with
and make it
. Not very fond of this solution… I think I’ll revert back to the no annotations form.
Mattia Tommasone11/16/2021, 10:33 AM
with JUnit 5 though, i’ve been using annotations and
in my JUnit 5 projects 🙂
Matteo Mirk11/16/2021, 10:48 AM
, I’m afraid it would look too noisy for my taste… let’s see 😄
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 Tommasone11/16/2021, 11:22 AM
Matteo Mirk11/16/2021, 11:31 AM