I've been initing my tests as such. Since the subject is inited with mocks and their values are whats important not whats being injected. Can the @Before be foregoed? Or is there anyway I can have an
This way your subject will be the same between tests methods which means it's state will be the same as left from previous test, i wouldn't recommend this.
I use lateinits with before, it's tests not production code, so even if it's a bit uglier at least im sure no state is shared between the tests
👆 2
c
Can Orhan
08/09/2019, 3:23 PM
@ghosalmartin Not sure what you mean by
values are whats important not whats being injected