Package com.volantis.testtools.mock

Examples of com.volantis.testtools.mock.ExpectationContainer


        builder.add(expectation);
    }


    public Object doMethodCall(MethodCall methodCall) throws Throwable {
        ExpectationContainer threadContainer = getThreadSpecificBuilder();
        return threadContainer.doMethodCall(methodCall);
    }
View Full Code Here


        return builder;
    }

    public void dump(Writer writer) throws IOException {
        ExpectationContainer threadContainer = getThreadSpecificBuilder();
        threadContainer.dump(writer);
    }
View Full Code Here

    }

    private static Object doMethodCall(MockObject mock, MethodCall methodCall)
            throws Throwable {
        Object _result;
        ExpectationContainer _container = mock._getExpectationContainer();
        if (_container == null) {
            _result = MockTestHelper.getGlobalExpectationContainer()
                    .doMethodCall(methodCall);
        } else {
            _result = _container.doMethodCall(methodCall);
        }
        return _result;
    }
View Full Code Here

        try {
            if (verify) {
                // Verify all expectations.
                for (Iterator iterator = getExpectations().iterator(); iterator.hasNext();)
                {
                    ExpectationContainer container =
                            (ExpectationContainer) iterator.next();
                    container.verify();
                }
            }
        } finally {
            // Clear the state.
            setState(null);
View Full Code Here

TOP

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

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.