@Override public void setUp() throws Exception { super.setUp(); // We can't mock AlarmManager since it has a package-private constructor, so instead we reset // the alarm by hand. cancelAlarm(getUploadIntent()); }
@Override public void tearDown() throws Exception { cancelAlarm(getUploadIntent()); super.tearDown(); }