| Modifier and Type | Method and Description |
|---|---|
static List<Integer> |
ArgumentMatcherPositionFinder.getArgumentMatcherIndexes(ProxyInvocation proxyInvocation,
int fromLineNr,
int toLineNr,
int index)
Locates the argument matchers for the given proxy method invocation.
|
| Modifier and Type | Class and Description |
|---|---|
class |
BehaviorDefiningInvocation |
class |
ObservedInvocation |
| Modifier and Type | Method and Description |
|---|---|
protected void |
MockProxy.assertCanExecute(MockBehavior mockBehavior,
ProxyInvocation proxyInvocation,
BehaviorDefiningInvocation behaviorDefiningInvocation)
Check whether the mock behavior can applied for this invocation
|
protected String |
Scenario.getAssertInvokedErrorMessage(ProxyInvocation proxyInvocation,
StackTraceElement invokedAt) |
protected String |
Scenario.getAssertNotInvokedErrorMessage(ProxyInvocation proxyInvocation,
ObservedInvocation unexpectedInvocation,
StackTraceElement[] assertedAt) |
protected MockBehavior |
PartialMockProxy.getDefaultMockBehavior(ProxyInvocation proxyInvocation) |
protected MockBehavior |
MockProxy.getDefaultMockBehavior(ProxyInvocation proxyInvocation) |
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).
|
protected MockBehavior |
MockProxy.getValidMockBehavior(ProxyInvocation proxyInvocation,
BehaviorDefiningInvocation behaviorDefiningInvocation) |
Object |
MockProxy.InvocationHandler.handleInvocation(ProxyInvocation invocation) |
protected Object |
MockProxy.handleMockInvocation(ProxyInvocation proxyInvocation) |
int |
BehaviorDefiningInvocation.matches(ProxyInvocation proxyInvocation)
Returns whether or not the given
ProxyInvocation matches this object's predefined Method and arguments. |
| Constructor and Description |
|---|
BehaviorDefiningInvocation(ProxyInvocation proxyInvocation,
MockBehavior mockBehavior,
List<ArgumentMatcher> argumentMatchers)
Creates a behavior defining invocation for the given prosy invocation.
|
ObservedInvocation(ProxyInvocation proxyInvocation,
BehaviorDefiningInvocation behaviorDefiningInvocation,
MockBehavior mockBehavior)
Creates a observed invocation for the given prosy invocation.
|
| Modifier and Type | Method and Description |
|---|---|
protected List<ArgumentMatcher> |
MatchingInvocationBuilder.createArgumentMatchers(ProxyInvocation proxyInvocation) |
Object |
MatchingInvocationBuilder.InvocationHandler.handleInvocation(ProxyInvocation proxyInvocation) |
Object |
MatchingInvocationHandler.handleInvocation(ProxyInvocation proxyInvocation,
List<ArgumentMatcher> argumentMatchers) |
protected Object |
MatchingInvocationBuilder.handleProxyInvocation(ProxyInvocation proxyInvocation,
MatchingInvocationHandler matchingInvocationHandler) |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
AssertVerifyingMatchingInvocationHandler.createChainedMock(ProxyInvocation proxyInvocation) |
protected Object |
BehaviorDefiningMatchingInvocationHandler.createChainedMock(ProxyInvocation proxyInvocation,
BehaviorDefiningInvocation behaviorDefiningInvocation) |
Object |
BehaviorDefiningMatchingInvocationHandler.ChainedMockBehavior.execute(ProxyInvocation proxyInvocation) |
Object |
BehaviorDefiningMatchingInvocationHandler.handleInvocation(ProxyInvocation proxyInvocation,
List<ArgumentMatcher> argumentMatchers) |
Object |
AssertVerifyingMatchingInvocationHandler.handleInvocation(ProxyInvocation proxyInvocation,
List<ArgumentMatcher> argumentMatchers) |
| Modifier and Type | Class and Description |
|---|---|
static class |
CglibProxyMethodInterceptor.CglibProxyInvocation
An invocation implementation that uses the cglib method proxy to be able to invoke the original behavior.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
ProxyInvocationHandler.handleInvocation(ProxyInvocation proxyInvocation)
Handles the given method invocation of the proxy.
|
| Constructor and Description |
|---|
ProxyInvocation(ProxyInvocation proxyInvocation)
Creates a copy of the given proxy invocation.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
DummyObjectUtil.DummyObjectInvocationHandler.handleInvocation(ProxyInvocation invocation)
Handles the given method invocation of the dummy object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ValidatableMockBehavior.assertCanExecute(ProxyInvocation proxyInvocation)
Checks whether the mock behavior can be executed for the given invocation.
|
Object |
MockBehavior.execute(ProxyInvocation proxyInvocation)
Executes the mock behavior.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ValueReturningMockBehavior.assertCanExecute(ProxyInvocation proxyInvocation)
Checks whether the mock behavior can be executed for the given invocation.
|
void |
StubMockBehavior.assertCanExecute(ProxyInvocation proxyInvocation)
Stub behavior is always allowed.
|
void |
OriginalBehaviorInvokingMockBehavior.assertCanExecute(ProxyInvocation proxyInvocation)
Checks whether the mock behavior can be executed for the given invocation.
|
void |
ExceptionThrowingMockBehavior.assertCanExecute(ProxyInvocation proxyInvocation)
Checks whether the mock behavior can be executed for the given invocation.
|
void |
DefaultValueReturningMockBehavior.assertCanExecute(ProxyInvocation proxyInvocation)
Checks whether the mock behavior can be executed for the given invocation.
|
Object |
ValueReturningMockBehavior.execute(ProxyInvocation proxyInvocation)
Executes the mock behavior.
|
Object |
OriginalBehaviorInvokingMockBehavior.execute(ProxyInvocation proxyInvocation)
Executes the mock behavior.
|
Object |
NoopMockBehavior.execute(ProxyInvocation proxyInvocation)
Empty mock behavior.
|
Object |
ExceptionThrowingMockBehavior.execute(ProxyInvocation proxyInvocation)
Executes the mock behavior.
|
Object |
DummyValueReturningMockBehavior.execute(ProxyInvocation proxyInvocation)
Executes the mock behavior.
|
Object |
DefaultValueReturningMockBehavior.execute(ProxyInvocation proxyInvocation)
Executes the mock behavior.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
ProxyInvocationsReport.formatInvokedAt(ProxyInvocation proxyInvocation)
Creates a string representation of the details of the given invocation.
|
protected String |
DetailedObservedInvocationsReport.formatInvokedAt(ProxyInvocation proxyInvocation)
Creates a string representation of the details of the given invocation.
|
Copyright © 2016. All Rights Reserved.