public void threadRecordFailure(Throwable t){
  threadFailure.compareAndSet(null,t);
}

public void threadRecordFailure ( Throwable t ) { threadFailure . compareAndSet ( null , t ) ; }
records an exception so that it can be rethrown later in the test harness thread , triggering a test case failure . only the first failure is recorded ; subsequent calls to this method from within the same test have no effect .
