| Package | Description |
|---|---|
| org.unitils.mock.core | |
| org.unitils.mock.core.matching.impl |
| Modifier and Type | Field and Description |
|---|---|
protected List<BehaviorDefiningInvocation> |
BehaviorDefiningInvocations.behaviorDefiningInvocations |
| Modifier and Type | Method and Description |
|---|---|
BehaviorDefiningInvocation |
ObservedInvocation.getBehaviorDefiningInvocation() |
protected BehaviorDefiningInvocation |
MockProxy.getMatchingBehaviorDefiningInvocation(ProxyInvocation proxyInvocation) |
BehaviorDefiningInvocation |
BehaviorDefiningInvocations.getMatchingBehaviorDefiningInvocation(ProxyInvocation proxyInvocation)
First we find all behavior defining invocations that have matching argument matchers and take the one with the highest
matching score (identity match scores higher than an equals match).
|
| Modifier and Type | Method and Description |
|---|---|
void |
BehaviorDefiningInvocations.addBehaviorDefiningInvocation(BehaviorDefiningInvocation behaviorDefiningInvocation) |
protected void |
MockProxy.assertCanExecute(MockBehavior mockBehavior,
ProxyInvocation proxyInvocation,
BehaviorDefiningInvocation behaviorDefiningInvocation)
Check whether the mock behavior can applied for this invocation
|
void |
Scenario.assertInvoked(BehaviorDefiningInvocation assertInvocation) |
void |
Scenario.assertInvokedInOrder(BehaviorDefiningInvocation assertInvocation) |
void |
Scenario.assertNotInvoked(BehaviorDefiningInvocation assertInvocation) |
protected MockBehavior |
MockProxy.getValidMockBehavior(ProxyInvocation proxyInvocation,
BehaviorDefiningInvocation behaviorDefiningInvocation) |
| Constructor and Description |
|---|
ObservedInvocation(ProxyInvocation proxyInvocation,
BehaviorDefiningInvocation behaviorDefiningInvocation,
MockBehavior mockBehavior)
Creates a observed invocation for the given prosy invocation.
|
| Modifier and Type | Field and Description |
|---|---|
protected BehaviorDefiningInvocation |
BehaviorDefiningMatchingInvocationHandler.ChainedMockBehavior.behaviorDefiningInvocation |
| Modifier and Type | Method and Description |
|---|---|
protected void |
BehaviorDefiningMatchingInvocationHandler.addBehaviorDefiningInvocation(BehaviorDefiningInvocation behaviorDefiningInvocation,
BehaviorDefiningInvocations behaviorDefinition) |
protected Object |
BehaviorDefiningMatchingInvocationHandler.createChainedMock(ProxyInvocation proxyInvocation,
BehaviorDefiningInvocation behaviorDefiningInvocation) |
protected abstract void |
AssertVerifyingMatchingInvocationHandler.performAssertion(Scenario scenario,
BehaviorDefiningInvocation behaviorDefiningInvocation) |
protected void |
AssertNotInvokedVerifyingMatchingInvocationHandler.performAssertion(Scenario scenario,
BehaviorDefiningInvocation behaviorDefiningInvocation) |
protected void |
AssertInvokedVerifyingMatchingInvocationHandler.performAssertion(Scenario scenario,
BehaviorDefiningInvocation behaviorDefiningInvocation) |
protected void |
AssertInvokedInSequenceVerifyingMatchingInvocationHandler.performAssertion(Scenario scenario,
BehaviorDefiningInvocation behaviorDefiningInvocation) |
| Constructor and Description |
|---|
BehaviorDefiningMatchingInvocationHandler.ChainedMockBehavior(Mock<?> mock,
BehaviorDefiningInvocation behaviorDefiningInvocation) |
Copyright © 2016. All Rights Reserved.