|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.unitils.mock.core.MockObject<T>
org.unitils.mock.core.PartialMockObject<T>
public class PartialMockObject<T>
Implementation of a PartialMock.
| Field Summary |
|---|
| Fields inherited from class org.unitils.mock.core.MockObject |
|---|
alwaysMatchingBehaviorDefiningInvocations, matchingInvocationBuilderThreadLocal, mockedType, mockProxy, name, oneTimeMatchingBehaviorDefiningInvocations, scenarioThreadLocal |
| Constructor Summary | |
|---|---|
PartialMockObject(java.lang.String name,
java.lang.Class<?> mockedClass,
java.lang.Object testObject)
Creates a mock of the given type for the given scenario. |
|
| Method Summary | |
|---|---|
protected MockProxy<T> |
createMockProxy()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.unitils.mock.Mock |
|---|
assertInvoked, assertInvokedInSequence, assertNotInvoked, getMock, oncePerforms, onceRaises, onceRaises, onceReturns, performs, raises, raises, resetBehavior, returns |
| Constructor Detail |
|---|
public PartialMockObject(java.lang.String name,
java.lang.Class<?> mockedClass,
java.lang.Object testObject)
name - The name of the mock, e.g. the field-name, not nullmockedClass - The mock type that will be proxied, use the raw type when mocking generic types, not nulltestObject - The test object, not null| Method Detail |
|---|
protected MockProxy<T> createMockProxy()
createMockProxy in class MockObject<T>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||