protected void setUp() { mock = EasyMock.createMock(Collaborator.class); // 1 mock1 = EasyMock.createMock(Collaborator.class); // 1 classUnderTest = new ClassUnderTest(); classUnderTest.addListener(mock); // classUnderTest.addListener(mock1); }
protected void setUp() { classUnderTest = new ClassUnderTest(); // control = EasyMock.createStrictControl(); control = EasyMock.createNiceControl(); mock = control.createMock(Collaborator.class); classUnderTest.addListener(mock); }