Beispiel #1
0
 @Test
 public void verifyIgnore() {
   Ignore ignore = new Ignore();
   for (Status eachStatus : Status.values()) {
     Assert.assertFalse(ignore.map(eachStatus).isPresent());
   }
 }
Beispiel #2
0
 @Test
 public void verifyIdentity() {
   Identity ignore = new Identity();
   for (Status eachStatus : Status.values()) {
     Assert.assertEquals(eachStatus, ignore.map(eachStatus).get());
   }
 }
Beispiel #3
0
 @Test
 public void verifySetTo() {
   SetTo setTo = new SetTo();
   setTo.setStatus(Status.WARNING);
   for (Status eachStatus : Status.values()) {
     Assert.assertEquals(Status.WARNING, setTo.map(eachStatus).get());
   }
 }