poohbar
12/30/2019, 3:29 PMval arguments = mockk<MutableMap<String, Any>> { every { containsKey(any()) } returns true }
every { environment.arguments } returns arguments
But this does not:
every { environment.arguments } returns mockk { every { containsKey(any()) } returns true }
Can I not inline the answer like this? The section on hierarchical mocking in the documentation has a similar example.