-
Notifications
You must be signed in to change notification settings - Fork 64
Mocking
Markus Amshove edited this page Feb 21, 2016
·
1 revision
This file contains examples on supported methods for mocking. All methods use Mockito.
Further examples can be seen in the tests
val mock = mock(Database::class)
mock.getPerson()
Verify on mock that mock.getPerson() was called
VerifyNoInteractions on mock
mock.getPerson(1)
mock.getPerson(5)
Verify on mock that mock.getPerson(1) was called
Verify on mock that mock.getPerson(5) was called
VerifyNoFurtherInteractions on mock