@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()); }
@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()); }
@Test public void ok() { assertTrue(Ack.OK.isSuccess()); }