#21 Provide mockType to createMock() method

EasyMock_2.4
open
EasyMock (40)
5
2012-10-05
2009-04-26
No

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.

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks