Package org.jmock.internal.matcher

Examples of org.jmock.internal.matcher.MockObjectMatcher


    private <T> T captureExpectedObject(T mockObject) {
        if (!(mockObject instanceof CaptureControl)) {
            throw new IllegalArgumentException("can only set expectations on mock objects");
        }
       
        expectation.setObjectMatcher(new MockObjectMatcher(mockObject));
        isFullySpecified = true;
       
        Object capturingImposter = ((CaptureControl)mockObject).captureExpectationTo(this);
       
        return asMockedType(mockObject, capturingImposter);
View Full Code Here


        if (!(mockObject instanceof CaptureControl)) {
            throw new IllegalArgumentException("can only set expectations on mock objects");
        }
       
        dispatcher = (CaptureControl)mockObject;
        expectation.setObjectMatcher(new MockObjectMatcher(mockObject));
        isFullySpecified = true;
        dispatcher.startCapturingExpectations(this);
    }
View Full Code Here

TOP

Related Classes of org.jmock.internal.matcher.MockObjectMatcher

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.