/** * Returns true if this was a totally successful scenario, based on the * results contained. */ public boolean wasSuccessful() { for ( Fixture fixture : fixtures ) { if ( fixture instanceof Expectation) { if ( !((Expectation) fixture).wasSuccessful() ) { return false; } } } return true; }
/** * Returns true if this was a totally successful scenario, based on the * results contained. */ public boolean wasSuccessful() { for ( Fixture fixture : fixtures ) { if ( fixture instanceof Expectation) { if ( !((Expectation) fixture).wasSuccessful() ) { return false; } } } return true; }