예제 #1
0
 @Test
 public void trigger_isDisabled_nameNotEmpty_recurrencesNotEmpty_ReturnsFalse() {
   Trigger trigger = new Trigger();
   trigger.setName("name");
   trigger.setRecurrences("recurrences");
   assertFalse(trigger.isDisabled());
 }
예제 #2
0
 @Test
 public void trigger_isDisabled_nameNotEmpty_timeNotEmpty_ReturnsFalse() {
   Trigger trigger = new Trigger();
   trigger.setName("name");
   trigger.setRawTime("time");
   assertFalse(trigger.isDisabled());
 }
예제 #3
0
 @Test
 public void trigger_isDisabled_nameNotEmpty_ReturnsTrue() {
   Trigger trigger = new Trigger();
   trigger.setName("name");
   assertTrue(trigger.isDisabled());
 }
예제 #4
0
 @Test
 public void trigger_isDisabled_nameEmpty_ReturnsFalse() {
   Trigger trigger = new Trigger();
   assertFalse(trigger.isDisabled());
 }