Package com.volantis.mock.samples

Examples of com.volantis.mock.samples.InterfaceWithToStringMock


        extends OptionalObjectMethodTestAbstract {
    private static final String TO_STRING = "fred";

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


        assertEquals(mock._getIdentifier(), mock.toString());
    }

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

        return toStringMock;
    }

    // Javadoc inherited.
    protected void addCheckingExpectations(MockObject mock) {
        InterfaceWithToStringMock toStringMock =
                (InterfaceWithToStringMock) mock;
        toStringMock.expects._toString().returns(TO_STRING);
    }
View Full Code Here

TOP

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

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.