Package com.volantis.testtools.mock.expectations

Examples of com.volantis.testtools.mock.expectations.Expectations


        //   Set Expectations
        // =====================================================================

        // The different parts of the "b c" selector can be created in any
        // order but that must be before the composite matcher is created.
        final Expectations bcParts = new UnorderedExpectations() {
            public void add() {
                expectTypeSelectorWithDefaultNamespace("b", blocal, bsequence);

                expectTypeSelectorWithDefaultNamespace("c", clocal, csequence);
            }
        };

        final Expectations bcComposite = new OrderedExpectations() {
            public void add() {

                add(bcParts);

                factoryMock.expects.createCompositeMatcher(bsequence, csequence,
                        Operator.DESCENDANT, matcherBuilderContextMock)
                        .returns(b_cMatcher);
            }
        };

        // The different parts of the "a > (b c)" selector can be created in
        // any order but that must be before the composite matcher is created.
        final Expectations a_bcParts = new UnorderedExpectations() {
            public void add() {

                add(bcComposite);

                expectTypeSelectorWithDefaultNamespace("a", alocal, asequence);
            }
        };

        final Expectations a_bcComposite = new OrderedExpectations() {
            public void add() {

                add(a_bcParts);

                factoryMock.expects.createCompositeMatcher(
View Full Code Here

TOP

Related Classes of com.volantis.testtools.mock.expectations.Expectations

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.