Package com.volantis.mock.samples

Examples of com.volantis.mock.samples.InterfaceWithEqualsMock


        assertTrue("Equal to self", equalsMock.equals(equalsMock));
    }

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


        return equalsMock;
    }

    // Javadoc inherited.
    protected void addCheckingExpectations(final MockObject mock) {
        InterfaceWithEqualsMock equalsMock = (InterfaceWithEqualsMock) mock;
        equalsMock.expects._equals(OBJECT).returns(true);
        equalsMock.expects._equals(equalsMock).returns(true);
    }
View Full Code Here

    private static final Object OBJECT = new Object();

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

TOP

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

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.