Purpose is to be able to "dynamically" create nice/strict/normal mocks without having to call the "appropriate" method.
Workaround is to directly use MockControl instead of EasyMock entry point :
IMocksControl ctrl = new MocksControl(MocksControl.MockType.STRICT);
MyMock mock = ctrl.createMock(MyMock.class);
This is only a "cosmetic" feature ... no real need to really implement this fastly.
Log in to post a comment.