Package org.easymock.tests2

Examples of org.easymock.tests2.DependencyTest


    }

    @Test
    public void testStrictMock() throws Exception {
        for (final ParamEntry p : PARAMETERS) {
            final A mock = p.getMock("createStrictMock");
            p.test(mock);
            testStrict(mock);
        }
    }
View Full Code Here


    }

    @Test
    public void testNormalMock() throws Exception {
        for (final ParamEntry p : PARAMETERS) {
            final A mock = p.getMock("createMock");
            p.test(mock);
            testNormal(mock);
        }
    }
View Full Code Here

    }

    @Test
    public void testNiceMock() throws Exception {
        for (final ParamEntry p : PARAMETERS) {
            final A mock = p.getMock("createNiceMock");
            p.test(mock);
            testNice(mock);
        }
    }
View Full Code Here

    }

    @Test
    public void testCreateMockBuilder() {
        final IMockBuilder<A> builder = createMockBuilder(A.class);
        final A a = builder.withConstructor(int.class).withArgs(2).createMock();
        assertEquals(2, a.i);
    }
View Full Code Here

TOP

Related Classes of org.easymock.tests2.DependencyTest

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.