Skip to content

Instantly share code, notes, and snippets.

@nhoxbypass
Last active February 16, 2020 17:50
Show Gist options
  • Save nhoxbypass/d0d4194be11424546089d3f893f28df9 to your computer and use it in GitHub Desktop.
Save nhoxbypass/d0d4194be11424546089d3f893f28df9 to your computer and use it in GitHub Desktop.
@RunWith(PowerMockRunner::class)
@PrepareForTest(Build.VERSION::class)
class MyPresenterTest {
@Test
fun onOpenCameraButtonClick_postM() {
Whitebox.setInternalState(Build.VERSION::class.java, "SDK_INT", 23)
// Verify flow request Runtime Permissions
// ...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment