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