Details
-
Type:
New Feature
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 2.5
-
Fix Version/s: None
-
Component/s: Core
-
Labels:None
-
Number of attachments :
Description
It would be convenient if we could use a single mock control to simultaneously control nice, default and strict mocks simultaneously.
It is common for our unit tests to want to use different mock types in a single test. For example, we might inject a "nice" logger mock, and a "strict" data-access mock. Since this behavior is not supported by EasyMock's MocksControl class as of EasyMock 2.4, we have written our own class to suit our needs (attached).
It would be ideal if there were functionality built into EasyMock which made this custom class unnecessary. This might come either as a modification to MocksControl, or as a new class which extends the functionality of MocksControl.