Package com.volantis.mock.samples

Examples of com.volantis.mock.samples.InterfaceWithHashCodeMock


        extends OptionalObjectMethodTestAbstract {
    private static final int HASH_CODE = 10;

    // Javadoc inherited.
    protected MockObject createUncheckingMock() {
        return new InterfaceWithHashCodeMock("hashCodeMock", expectations);
    }
View Full Code Here


                     mock.hashCode());
    }

    // Javadoc inherited.
    protected MockObject createCheckingMock() {
        final InterfaceWithHashCodeMock hashCodeMock =
                new InterfaceWithHashCodeMock("hashCodeMock", expectations);
        hashCodeMock.configuration.setHashCodeShouldCheckExpectations(true);
        return hashCodeMock;
    }
View Full Code Here

        return hashCodeMock;
    }

    // Javadoc inherited.
    protected void addCheckingExpectations(MockObject mock) {
        InterfaceWithHashCodeMock hashCodeMock =
                (InterfaceWithHashCodeMock) mock;
        hashCodeMock.expects._hashCode().returns(HASH_CODE).any();
    }
View Full Code Here

TOP

Related Classes of com.volantis.mock.samples.InterfaceWithHashCodeMock

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.