Skip to content

Instantly share code, notes, and snippets.

View jooyunghan's full-sized avatar

Jooyung Han jooyunghan

View GitHub Profile
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());
}
public void testOnButtonClick_StartSettings() throws Exception {
AlarmActivity activity = getActivity();
activity.onAddAlarm();
Intent intent = getStartedActivityIntent();
assertEquals(SettingsActivity.class.getCanonicalName(),
intent.getComponent().getClassName());
}
@jooyunghan
jooyunghan / build.properties
Created July 21, 2011 23:04
#golandroidtest/build.properties 중에서
extensible.libs.classpath=../gol/jar
@jooyunghan
jooyunghan / build.xml
Created July 21, 2011 23:02
golandroid/build.xml 중에서
    <target name="-pre-compile">
     <subant target="jar">
      <fileset dir="../gol" includes="build.xml" />
     </subant>
    </target>
jar.libs.dir=../gol/jar