Skip to content

Instantly share code, notes, and snippets.

@radityagumay
Last active December 5, 2020 12:02
Show Gist options
  • Save radityagumay/8fdc67bd3d68656c3a49ef0775891359 to your computer and use it in GitHub Desktop.
Save radityagumay/8fdc67bd3d68656c3a49ef0775891359 to your computer and use it in GitHub Desktop.
class FooPresenterTest {
private val view = mock<FooPresenterContract.View>()
private val presenter: FooPresenterContract.Presenter = FooPresenter(view)
@Test
fun testDoWork() {
presenter.doWork()
verify(view).inflated("it was success!")
verifyNoMoreInteraction(view)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment