298299300301302303304305306307
} @Test public void testStrictMock() throws Exception { for (final ParamEntry p : PARAMETERS) { final A mock = p.getMock("createStrictMock"); p.test(mock); testStrict(mock); } }
307308309310311312313314315316
} @Test public void testNormalMock() throws Exception { for (final ParamEntry p : PARAMETERS) { final A mock = p.getMock("createMock"); p.test(mock); testNormal(mock); } }
316317318319320321322323324325
} @Test public void testNiceMock() throws Exception { for (final ParamEntry p : PARAMETERS) { final A mock = p.getMock("createNiceMock"); p.test(mock); testNice(mock); } }
325326327328329330331332
} @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); }