Last active
February 12, 2019 17:21
-
-
Save gilgoldzweig/2f6d82c03522a8835d20e4c0a66a57af to your computer and use it in GitHub Desktop.
This file contains hidden or 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 ExamplePresenterTest { | |
//Setup code... | |
@Test | |
fun `test_fetchProfileName_calles_onProfileNameReceived_on_positive_response`() { | |
Mockito.`when`(presenter.fetchProfileNameFromRepository())) | |
.thenReturn("Gil Goldzweig") | |
presenter.fetchProfileName() | |
Mockito.verify(view, times(1)) | |
.onProfileNameReceived("Gil Goldzweig") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment