src/main/java/org/cornutum/hamcrest/ExpectedFailure.java
/**
   * After {@link #when performing an action}, apply the given checker to verify details of the expected failure.
   */
After  #when performing an action, apply the given checker to verify details of the expected failure.
After #when performing an action apply the given checker to verify details of the expected failure .
public void then( Consumer<T> failureChecker)
    {
    if( expected == null)
      {
      throw new IllegalStateException( "No action performed to produce the expected failure");
      }
    expected.ifPresent( failureChecker::accept);
    }
public void then ( Consumer < T > failureChecker ) { if ( expected == null ) { throw new IllegalStateException ( "No action performed to produce the expected failure" ) ; } expected . ifPresent ( failureChecker :: accept ) ; }
After {@link #when performing an action}, apply the given checker to verify details of the expected failure.
After { @link #when performing an action } apply the given checker to verify details of the expected failure .