示例#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 ok() {
   assertTrue(Ack.OK.isSuccess());
 }