|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Uses of ProxyInvocation in org.unitils.mock.argumentmatcher |
---|
Methods in org.unitils.mock.argumentmatcher with parameters of type ProxyInvocation | |
---|---|
static List<Integer> |
ArgumentMatcherPositionFinder.getArgumentMatcherIndexes(ProxyInvocation proxyInvocation,
int fromLineNr,
int toLineNr,
int index)
Locates the argument matchers for the given proxy method invocation. |
Uses of ProxyInvocation in org.unitils.mock.core |
---|
Subclasses of ProxyInvocation in org.unitils.mock.core | |
---|---|
class |
BehaviorDefiningInvocation
|
class |
ObservedInvocation
|
Methods in org.unitils.mock.core with parameters of type ProxyInvocation | |
---|---|
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. |
Constructors in org.unitils.mock.core with parameters of type ProxyInvocation | |
---|---|
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. |
Uses of ProxyInvocation in org.unitils.mock.core.matching |
---|
Methods in org.unitils.mock.core.matching with parameters of type ProxyInvocation | |
---|---|
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)
|
Uses of ProxyInvocation in org.unitils.mock.core.matching.impl |
---|
Methods in org.unitils.mock.core.matching.impl with parameters of type ProxyInvocation | |
---|---|
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)
|
Uses of ProxyInvocation in org.unitils.mock.core.proxy |
---|
Subclasses of ProxyInvocation in org.unitils.mock.core.proxy | |
---|---|
static class |
CglibProxyMethodInterceptor.CglibProxyInvocation
An invocation implementation that uses the cglib method proxy to be able to invoke the original behavior. |
Methods in org.unitils.mock.core.proxy with parameters of type ProxyInvocation | |
---|---|
Object |
ProxyInvocationHandler.handleInvocation(ProxyInvocation proxyInvocation)
Handles the given method invocation of the proxy. |
Constructors in org.unitils.mock.core.proxy with parameters of type ProxyInvocation | |
---|---|
ProxyInvocation(ProxyInvocation proxyInvocation)
Creates a copy of the given proxy invocation. |
Uses of ProxyInvocation in org.unitils.mock.dummy |
---|
Methods in org.unitils.mock.dummy with parameters of type ProxyInvocation | |
---|---|
Object |
DummyObjectUtil.DummyObjectInvocationHandler.handleInvocation(ProxyInvocation invocation)
Handles the given method invocation of the dummy object. |
Uses of ProxyInvocation in org.unitils.mock.mockbehavior |
---|
Methods in org.unitils.mock.mockbehavior with parameters of type ProxyInvocation | |
---|---|
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. |
Uses of ProxyInvocation in org.unitils.mock.mockbehavior.impl |
---|
Methods in org.unitils.mock.mockbehavior.impl with parameters of type ProxyInvocation | |
---|---|
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. |
Uses of ProxyInvocation in org.unitils.mock.report.impl |
---|
Methods in org.unitils.mock.report.impl with parameters of type ProxyInvocation | |
---|---|
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. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |