public final TestSubscriber assertError(Throwable error){
  String prefix="";
  boolean passed=true;
  if (done.getCount() != 0) {
    prefix="Subscriber still running! ";
  }
  int s=errors.size();
  if (s == 0) {
    fail(prefix,"No errors",Collections.<Throwable>emptyList());
    passed=false;
  }
  pass("error received",passed);
  return this;
}

public final TestSubscriber assertError ( Throwable error ) { String prefix = "" ; boolean passed = true ; if ( done . getCount ( ) != 0 ) { prefix = "Subscriber still running! " ; } int s = errors . size ( ) ; if ( s == 0 ) { fail ( prefix , "No errors" , Collections . < Throwable > emptyList ( ) ) ; passed = false ; } pass ( "error received" , passed ) ; return this ; }
assert that this testsubscriber received exactly the specified onerror event value .
