org.unitils.mock
Interface PartialMock<T>

All Superinterfaces:
Mock<T>
All Known Implementing Classes:
PartialMockObject

public interface PartialMock<T>
extends Mock<T>

Declares the contract for a controller object that enables defining the behavior of methods of a partial mock object, or for performing assert statements that verify that certain calls were effectively made. A method is also defined that provides access to the actual partial mock object.

If Unitils encounters a field declared as PartialMock, a MockObject is automatically instantiated and assigned to the declared field. This mock object will use the original implementation of each method as default behavior.


Method Summary
 
Methods inherited from interface org.unitils.mock.Mock
assertInvoked, assertInvokedInSequence, assertNotInvoked, getMock, oncePerforms, onceRaises, onceRaises, onceReturns, performs, raises, raises, resetBehavior, returns
 



Copyright © 2009. All Rights Reserved.