jMock

Add getMockery() to MockObjectTestCase

Details

  • Type: Improvement Improvement
  • Status: Resolved Resolved
  • Priority: Trivial 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 :
    0

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.

Activity

Hide
Nat Pryce added a comment -

I've added a context() method to the MockObjectTestCase class

Show
Nat Pryce added a comment - I've added a context() method to the MockObjectTestCase class

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: