Package com.volantis.testtools.mock

Examples of com.volantis.testtools.mock.CompositeExpectation.addExpectation()


        return createCompositeExpectation();
    }

    public void testImmutable() {
        CompositeExpectation expectation = createCompositeExpectation();
        expectation.addExpectation(new TestSimpleExpectation("A"));

        ((InternalExpectation) expectation).makeImmutable();

        try {
            expectation.addExpectation(new TestSimpleExpectation("B"));
View Full Code Here


        expectation.addExpectation(new TestSimpleExpectation("A"));

        ((InternalExpectation) expectation).makeImmutable();

        try {
            expectation.addExpectation(new TestSimpleExpectation("B"));

            fail("Did not detect attempt to change immutable expectation");
        } catch (IllegalStateException e) {
        }
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.