@Test public void succeedsVerificationWhenHasNoExpectations() { ReportExpectations expectations = new ReportExpectations(orderedExpectations); expectations.verify(); }
@Override public void verify() { try { expectations.verify(); } catch (UnmetExpectations e) { FormattedReport report = prepareReport(); throw new UnmetExpectations(report.format(), e); } }
ReportExpectations implements Expectations { @Override public void verify() { try { expectations.verify(); } catch (UnmetExpectations e) { FormattedReport report = prepareReport(); throw new UnmetExpectations(report.format(), e); } } }
ReportExpectations implements Expectations { @Override public void verify() { try { expectations.verify(); } catch (UnmetExpectations e) { FormattedReport report = prepareReport(); throw new UnmetExpectations(report.format(), e); } } ReportExpectations(Expectations expectations); }
ReportExpectations implements Expectations { @Override public void verify() { try { expectations.verify(); } catch (UnmetExpectations e) { FormattedReport report = prepareReport(); throw new UnmetExpectations(report.format(), e); } } ReportExpectations(Expectations expectations); @Override void recordStub(
            Class<MockType> classToMock, MockType instance, Method method, Arguments arguments, ReturnType result
    ); @Override Object execute(
            Class<MockType> classToMock, MockType instance, Method method, Object[] arguments
    ); @Override void verify(); }
ReportExpectations implements Expectations { @Override public void verify() { try { expectations.verify(); } catch (UnmetExpectations e) { FormattedReport report = prepareReport(); throw new UnmetExpectations(report.format(), e); } } ReportExpectations(Expectations expectations); @Override void recordStub(
            Class<MockType> classToMock, MockType instance, Method method, Arguments arguments, ReturnType result
    ); @Override Object execute(
            Class<MockType> classToMock, MockType instance, Method method, Object[] arguments
    ); @Override void verify();  }