242526272829303132
public class TestResult extends TestExpression { @Test public void testPass() { Result result = Result.PASS; assertTrue(result.isPass()); assertTrue(result.isDescend()); }
313233343536373839
assertTrue(result.isDescend()); } @Test public void testFail() { Result result = Result.FAIL; assertFalse(result.isPass()); assertTrue(result.isDescend()); }
373839404142434445
assertFalse(result.isPass()); assertTrue(result.isDescend()); } @Test public void testStop() { Result result = Result.STOP; assertTrue(result.isPass()); assertFalse(result.isDescend()); }
444546474849505152
assertFalse(result.isDescend()); } @Test public void combinePassPass() { Result result = Result.PASS.combine(Result.PASS); assertTrue(result.isPass()); assertTrue(result.isDescend()); }
515253545556575859
assertTrue(result.isDescend()); } @Test public void combinePassFail() { Result result = Result.PASS.combine(Result.FAIL); assertFalse(result.isPass()); assertTrue(result.isDescend()); }
575859606162636465
assertFalse(result.isPass()); assertTrue(result.isDescend()); } @Test public void combineFailPass() { Result result = Result.FAIL.combine(Result.PASS); assertFalse(result.isPass()); assertTrue(result.isDescend()); }
636465666768697071
assertFalse(result.isPass()); assertTrue(result.isDescend()); } @Test public void combineFailFail() { Result result = Result.FAIL.combine(Result.FAIL); assertFalse(result.isPass()); assertTrue(result.isDescend()); }
697071727374757677
assertFalse(result.isPass()); assertTrue(result.isDescend()); } @Test public void combinePassStop() { Result result = Result.PASS.combine(Result.STOP); assertTrue(result.isPass()); assertFalse(result.isDescend()); }
767778798081828384
assertFalse(result.isDescend()); } @Test public void combineStopFail() { Result result = Result.STOP.combine(Result.FAIL); assertFalse(result.isPass()); assertFalse(result.isDescend()); }
828384858687888990
assertFalse(result.isPass()); assertFalse(result.isDescend()); } @Test public void combineStopPass() { Result result = Result.STOP.combine(Result.PASS); assertTrue(result.isPass()); assertFalse(result.isDescend()); }