| Package | Description |
|---|---|
| org.unitils.mock | |
| org.unitils.mock.core | |
| org.unitils.mock.core.matching.impl |
| Modifier and Type | Interface and Description |
|---|---|
interface |
PartialMock<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.
|
| Modifier and Type | Method and Description |
|---|---|
protected <T> Mock<T> |
MockModule.createMock(Object testObject,
String name,
Class<?> type) |
protected <T> Mock<T> |
MockModule.createPartialMock(Object testObject,
String name,
Class<?> type) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
MockModule.callAfterCreateMockMethods(Object testObject,
Mock<?> mockObject,
String name)
Calls all
AfterCreateMock annotated methods on the test, passing the given mock. |
protected void |
MockModule.injectMock(Object testObject,
Field field,
Mock<?> mock) |
| Modifier and Type | Class and Description |
|---|---|
class |
MockObject<T>
Implementation of a Mock.
|
class |
PartialMockObject<T>
Implementation of a PartialMock.
|
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,Mock<?>> |
MockObject.chainedMocksPerName |
| Modifier and Type | Method and Description |
|---|---|
<M> Mock<M> |
MockObject.createChainedMock(String name,
Class<M> mockedType) |
<T> Mock<T> |
MockFactory.createChainedMock(String name,
Class<T> mockedType) |
| Modifier and Type | Field and Description |
|---|---|
protected Mock<?> |
BehaviorDefiningMatchingInvocationHandler.ChainedMockBehavior.mock |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Object |
AssertVerifyingMatchingInvocationHandler.performChainedAssertion(Mock<?> mock) |
protected Object |
AssertNotInvokedVerifyingMatchingInvocationHandler.performChainedAssertion(Mock<?> mock) |
protected Object |
AssertInvokedVerifyingMatchingInvocationHandler.performChainedAssertion(Mock<?> mock) |
protected Object |
AssertInvokedInSequenceVerifyingMatchingInvocationHandler.performChainedAssertion(Mock<?> mock) |
| Constructor and Description |
|---|
BehaviorDefiningMatchingInvocationHandler.ChainedMockBehavior(Mock<?> mock,
BehaviorDefiningInvocation behaviorDefiningInvocation) |
Copyright © 2016. All Rights Reserved.