Created
March 19, 2016 23:21
-
-
Save xfumihiro/19789ab18b6a2b634a07 to your computer and use it in GitHub Desktop.
Sample of Unit Testing a Presenter
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
@Test public void testShowOnLoad() { | |
mainPresenter = new Main.Presenter(); | |
mainPresenter.takeView(mockMainView); | |
verify(mockMainView).show(anyString()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment