Details
-
Type:
Improvement
-
Status:
Resolved
-
Priority:
Trivial
-
Resolution: Fixed
-
Affects Version/s: 2.5.1
-
Fix Version/s: 2.6.0
-
Component/s: JMock 2.x.x Library
-
Labels:None
-
Number of attachments :
Description
Please add an accessor method in org.jmock.integration.junit3.MockObjectTestCase to allow subclasses direct access to the Mockery object.
My use case is that my test has a collaborator class which needs to create mocks and expectations itself, and I'd rather not pass it the reference to the MockObjectTestCase class.
I've added a context() method to the MockObjectTestCase class