Package | Description |
---|---|
org.spockframework.mock |
Spock's built-in mocking framework.
|
org.spockframework.mock.constraint | |
org.spockframework.mock.runtime |
Modifier and Type | Method | Description |
---|---|---|
IMockInteraction |
TooManyInvocationsError.getInteraction() |
|
IMockInteraction |
WrongInvocationOrderError.getInteraction() |
|
IMockInteraction |
DefaultEqualsHashCodeToStringInteractions.match(IMockInvocation invocation) |
|
IMockInteraction |
IInteractionScope.match(IMockInvocation invocation) |
Modifier and Type | Method | Description |
---|---|---|
void |
DefaultEqualsHashCodeToStringInteractions.addInteraction(IMockInteraction interaction) |
|
void |
IInteractionScope.addInteraction(IMockInteraction interaction) |
|
boolean |
IMockObject.matches(java.lang.Object target,
IMockInteraction interaction) |
Tells whether this mock object matches the target of the specified interaction.
|
void |
IInteractionAware.setInteraction(IMockInteraction interaction) |
Constructor | Description |
---|---|
TooManyInvocationsError(IMockInteraction interaction,
java.util.List<IMockInvocation> acceptedInvocations) |
|
WrongInvocationOrderError(IMockInteraction interaction,
IMockInvocation lastInvocation) |
Constructor | Description |
---|---|
TooFewInvocationsError(java.util.List<IMockInteraction> interactions,
java.util.List<IMockInvocation> unmatchedInvocations) |
Modifier and Type | Method | Description |
---|---|---|
void |
TargetConstraint.setInteraction(IMockInteraction interaction) |
Modifier and Type | Class | Description |
---|---|---|
class |
MockInteraction |
An anticipated interaction between the SUT and one or more mock objects.
|
class |
MockInteractionDecorator |
Modifier and Type | Field | Description |
---|---|---|
protected IMockInteraction |
MockInteractionDecorator.decorated |
Modifier and Type | Method | Description |
---|---|---|
IMockInteraction |
InteractionBuilder.build() |
|
IMockInteraction |
InteractionScope.match(IMockInvocation invocation) |
Modifier and Type | Method | Description |
---|---|---|
void |
InteractionScope.addInteraction(IMockInteraction interaction) |
|
void |
MockController.addInteraction(IMockInteraction interaction) |
|
boolean |
MockObject.matches(java.lang.Object target,
IMockInteraction interaction) |
Constructor | Description |
---|---|
MockInteractionDecorator(IMockInteraction decorated) |
Copyright © 2018. All rights reserved