Menu

#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.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.