예제 #1
0
 @Test
 public void and() {
   assertFalse(Ack.NOK.and(Ack.NOK).isSuccess());
   assertFalse(Ack.NOK.and(Ack.OK).isSuccess());
   assertFalse(Ack.OK.and(Ack.NOK).isSuccess());
   assertTrue(Ack.OK.and(Ack.OK).isSuccess());
 }
예제 #2
0
 @Test
 public void or() {
   assertFalse(Ack.NOK.or(Ack.NOK).isSuccess());
   assertTrue(Ack.NOK.or(Ack.OK).isSuccess());
   assertTrue(Ack.OK.or(Ack.NOK).isSuccess());
   assertTrue(Ack.OK.or(Ack.OK).isSuccess());
 }
예제 #3
0
 @Test
 public void nok() {
   assertFalse(Ack.NOK.isSuccess());
 }