Last active
February 17, 2020 17:55
-
-
Save nhoxbypass/22564a4ade7667e0d8605f7d88e60cc3 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 MyPresenterTest { | |
@Test | |
fun onOpenCameraButtonClick_postM() { | |
// Arrange | |
Mockito.`when`(mockBuildProvider.isMarshmallowAndAbove()).thenReturn(true) | |
// Action | |
presenter.onCameraButtonClick() | |
// Assert | |
Mockito.verify(mockView).requestCameraPermission() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment