Package com.volantis.testtools.mock.impl

Examples of com.volantis.testtools.mock.impl.RepeatingExpectation


        // =====================================================================
        //   Test Expectations
        // =====================================================================

        RepeatingExpectation expectation = new RepeatingExpectation(
                1, Integer.MAX_VALUE, expectationMock);
        EventEffect effect;

        // Try one, this should cause the repeating expectation to be partially
        // satisfied.
        effect = expectation.checkExpectations(ExpectationState.CURRENT,
                                               eventMock, report);
        assertEquals(EventEffect.MATCHED_EXPECTATION, effect);

        // Try it again but this time the nested expectation fails.
        effect = expectation.checkExpectations(ExpectationState.CURRENT,
                                               eventMock, report);
        assertEquals(EventEffect.WOULD_SATISFY, effect);
    }
View Full Code Here

TOP

Related Classes of com.volantis.testtools.mock.impl.RepeatingExpectation

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.