Last active
December 5, 2020 12:02
-
-
Save radityagumay/8fdc67bd3d68656c3a49ef0775891359 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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