Package org.spockframework.mock

Interface Summary
IArgumentConstraint A constraint on an invocation argument.
IInteractionScope An interaction scope holds a group of interactions that will be verified, and thereafter removed, at the same time.
IInvocationConstraint  
IInvocationDispatcher  
IMockFactory  
IMockInteraction An anticipated interaction between the SUT and one or more mock objects.
IMockInvocation A method invocation on a mock object.
IMockObject  
IResultGenerator Generates return values for invocations on mock objects.
 

Class Summary
CodeArgumentConstraint  
CodeResultGenerator  
ConstantResultGenerator  
DefaultEqualsInteraction  
DefaultHashCodeInteraction  
DefaultInteraction  
DefaultInteractionScope  
DefaultMockFactory Some implementation details of this class are stolen from Spring, EasyMock Class Extensions, and this thread: http://www.nabble.com/Callbacks%2C-classes-and-instances-to4092596.html
DefaultResultGenerator Returns the default value for the invoked method's return type.
DefaultStubbedInteraction  
DefaultToStringInteraction  
EqualArgumentConstraint  
EqualMethodNameConstraint  
EqualPropertyNameConstraint  
IdenticalTargetConstraint  
InteractionBuilder  
InteractionScope A scope for interactions defined outside a then-block
IterableResultGenerator Generates result values from an iterable object.
MockController  
MockInteraction An anticipated interaction between the SUT and one or more mock objects.
MockInteractionDecorator  
MockInvocation  
MockObject  
NamedArgumentListConstraint  
NegatingArgumentConstraint  
PositionalArgumentListConstraint  
RegexMethodNameConstraint  
RegexPropertyNameConstraint  
TypeArgumentConstraint  
WildcardArgumentConstraint  
WildcardMethodNameConstraint  
 

Exception Summary
CannotCreateMockException Thrown when an attempt to create a mock object fails.
 

Error Summary
InteractionNotSatisfiedError Base class for exceptions indicating that one or more interactions have not been satisfied (i.e.
TooFewInvocationsError Indicates that one or more required interactions have matched too few invocations.
TooManyInvocationsError Indicates that a required interaction has matched too many invocations.
WrongInvocationOrderError Thrown if an invocation on a mock object occurs too late.
 



Copyright © 2010. All Rights Reserved.