Created
July 24, 2011 03:05
-
-
Save jooyunghan/1102171 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
public void testGiven15Alarms_WhenAddNewAlarm_ThenShowToastWithErrorMessage() throws Exception { | |
populateAlarms(15); | |
mSolo.clickOnButton(0); // try to add new alarm | |
// check Toast message | |
assertTrue(mSolo.searchText(mActivity.getString(R.string.max_alarm_error))); | |
assertEquals(15, mActivity.getAlarmCount()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment