I'm trying to write unit tests using mockk.
I'm trying to figure out how to mock a new instance of an object.
For example, using PowerMockito we would write:
PowerMockito.whenNew(Dog::class.java).withArguments("beagle").thenReturn(mockDog)
If the expected result of my test is mockDog, I want to be able to assert that it equals my actualResult:
assertEquals(mockDog, actualResult)
How would I accomplish this using mockk?
Thanks in advance.