Package com.volantis.testtools.mock

Examples of com.volantis.testtools.mock.Expectation


     * @return A list of events.
     */
    protected abstract List createSatisfyingEvents();

    public void testRepeated() {
        Expectation expectation = createExpectation();
        List events = createSatisfyingEvents();

        RepeatingExpectation repeating = new RepeatingExpectation(1, 3);
        repeating.addExpectation(expectation);

View Full Code Here


        list.add(new MethodInvocationEvent(fooMock, identifier, arguments));
        return list;
    }

    public void testVerifiedExpecationReturnsNoReportContent()  throws Exception {
        Expectation expectation = createExpectation();
        List events = createSatisfyingEvents();

        ReportingRepeatingExpectation repeating =
                new ReportingRepeatingExpectation(1, 3);
View Full Code Here

        assertEquals("", out.toString());
    }

    public void testUnverifiedExpectationReturnsReportContent()  throws Exception {
        Expectation expectation = createExpectation();

        ReportingRepeatingExpectation repeating =
                new ReportingRepeatingExpectation(1, 3);
        repeating.addExpectation(expectation);
View Full Code Here

    protected final EventEffect checkExpectationsImpl(ExpectationState state,
                                                      Event event,
                                                      Report report) {

        Expectation oldMarker = (Expectation) report.getMarker();

        final boolean opaqueContainer = opaqueContainer(oldMarker);
        if (opaqueContainer) {
            report.startExpectation();
            before(report);
View Full Code Here

TOP

Related Classes of com.volantis.testtools.mock.Expectation

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.