Loading services/tests/uiservicestests/src/com/android/server/notification/ScheduleCalendarTest.java +3 −0 Original line number Original line Diff line number Diff line Loading @@ -23,6 +23,7 @@ import static org.junit.Assert.assertTrue; import android.service.notification.ScheduleCalendar; import android.service.notification.ScheduleCalendar; import android.service.notification.ZenModeConfig; import android.service.notification.ZenModeConfig; import android.support.test.filters.FlakyTest; import android.support.test.runner.AndroidJUnit4; import android.support.test.runner.AndroidJUnit4; import android.test.suitebuilder.annotation.SmallTest; import android.test.suitebuilder.annotation.SmallTest; Loading Loading @@ -257,6 +258,7 @@ public class ScheduleCalendarTest extends NotificationTestCase { } } @Test @Test @FlakyTest public void testIsInSchedule_inScheduleOvernight() { public void testIsInSchedule_inScheduleOvernight() { Calendar cal = new GregorianCalendar(); Calendar cal = new GregorianCalendar(); cal.set(Calendar.HOUR_OF_DAY, 23); cal.set(Calendar.HOUR_OF_DAY, 23); Loading @@ -273,6 +275,7 @@ public class ScheduleCalendarTest extends NotificationTestCase { } } @Test @Test @FlakyTest public void testIsInSchedule_inScheduleSingleDay() { public void testIsInSchedule_inScheduleSingleDay() { Calendar cal = new GregorianCalendar(); Calendar cal = new GregorianCalendar(); cal.set(Calendar.HOUR_OF_DAY, 14); cal.set(Calendar.HOUR_OF_DAY, 14); Loading Loading
services/tests/uiservicestests/src/com/android/server/notification/ScheduleCalendarTest.java +3 −0 Original line number Original line Diff line number Diff line Loading @@ -23,6 +23,7 @@ import static org.junit.Assert.assertTrue; import android.service.notification.ScheduleCalendar; import android.service.notification.ScheduleCalendar; import android.service.notification.ZenModeConfig; import android.service.notification.ZenModeConfig; import android.support.test.filters.FlakyTest; import android.support.test.runner.AndroidJUnit4; import android.support.test.runner.AndroidJUnit4; import android.test.suitebuilder.annotation.SmallTest; import android.test.suitebuilder.annotation.SmallTest; Loading Loading @@ -257,6 +258,7 @@ public class ScheduleCalendarTest extends NotificationTestCase { } } @Test @Test @FlakyTest public void testIsInSchedule_inScheduleOvernight() { public void testIsInSchedule_inScheduleOvernight() { Calendar cal = new GregorianCalendar(); Calendar cal = new GregorianCalendar(); cal.set(Calendar.HOUR_OF_DAY, 23); cal.set(Calendar.HOUR_OF_DAY, 23); Loading @@ -273,6 +275,7 @@ public class ScheduleCalendarTest extends NotificationTestCase { } } @Test @Test @FlakyTest public void testIsInSchedule_inScheduleSingleDay() { public void testIsInSchedule_inScheduleSingleDay() { Calendar cal = new GregorianCalendar(); Calendar cal = new GregorianCalendar(); cal.set(Calendar.HOUR_OF_DAY, 14); cal.set(Calendar.HOUR_OF_DAY, 14); Loading