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