Created
April 25, 2014 18:35
-
-
Save izmajlowiczl/11298988 to your computer and use it in GitHub Desktop.
Testing home button
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 homeButtonHidesKeyboard() { | |
final MenuItem item = mock(MenuItem.class); | |
when(item.getItemId()).thenReturn(android.R.id.home); | |
testedFragment.onOptionsItemSelected(item); | |
verify(keyboardHackerMock).hideKeyboardAndResetBottomPaddingFor(any(View.class)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment