@Override
 public void testAssertionVerified(Assertion assertion, TestResult testResult) {
   if (testResult != null
       && testResult.doesCount()
       && (testResult.getExecutionResult() == ExecutionResult.FAIL
           || testResult.getExecutionResult() == ExecutionResult.ERROR)) {
     firstFailure(testResult.getExecutionResult(), createMessage(testResult));
   }
 }
Esempio n. 2
0
 public boolean matches() {
   TestResult testResult = evaluate();
   return testResult != null && testResult.getExecutionResult() == ExecutionResult.PASS;
 }