Details
-
Type:
Improvement
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.5.0
-
Fix Version/s: 2.6.0
-
Component/s: JMock 2.x.x Library
-
Labels:None
-
Number of attachments :
Description
Hi,
it could be very nice to have an ability to mark fields in test case to be mocked.
For example, any field in test case marked with annotation @Mocked will be assigned a value.
Actually, I have implemented such feature for Jmock 2.5.0 & Junit 4.4 and I'll include sample code.
Annotation source code, Runner source code.