Mark McCormick
11/27/2019, 3:13 PMinit
block in my ViewModel
. I would like to set some expected behavior of a mock I have inside the init
block like this every { repository.getSomething() } returns SomeEnum.A
. The problem is this expected answer is executed after the init
block. If I put the every { ... }
part to @Before
function it works fine, but I would like to set this expected answer only for one specific test. Any ideas?Mark McCormick
11/27/2019, 3:20 PM