All Classes Interface Summary Class Summary Enum Summary Exception Summary Error Summary Annotation Types Summary
Class |
Description |
AbstractAnnotationDrivenExtension<T extends java.lang.annotation.Annotation> |
|
AbstractDeepBlockRewriter |
|
AbstractExpressionConverter<T> |
|
AbstractMethodInterceptor |
|
AbstractMultiset<E> |
|
AbstractRuleExtension |
|
AbstractRuleInterceptor |
|
AbstractRunListener |
|
AbstractSpecVisitor |
|
AddSlotFactory |
|
AnonymousBlock |
A block without a label at the beginning of a method.
|
Assert |
Assertions for use within Spock code.
|
AstInspector |
Utility class for inspecting the abstract syntax tree (AST) produced by
the Groovy compiler.
|
AstInspectorException |
Unchecked exception thrown by AstInspector when:
an IOException occurs when loading a file
a declaration with the specified name cannot be found
an internal error occurs
|
AstNodeCache |
Provides access to frequently used AST nodes.
|
AstUtil |
Utility methods for AST processing.
|
AsyncConditions |
Alternative to class BlockingVariable(s) that allows to evaluate conditions
in a thread other than the spec runner's thread(s).
|
AutoCleanup |
Automatically cleans up the object stored in the annotated field or property
at the end of its life time.
|
AutoCleanupExtension |
|
AutoCleanupInterceptor |
|
BaseSpecRunner |
Executes a single Spec.
|
Beta |
Indicates that the annotated element, a member of Spock's public API, is in a
trial phase.
|
Block |
AST node representing a block in a feature method.
|
BlockInfo |
Runtime information about a block in a method of a Spock specification.
|
BlockingVariable<T> |
A statically typed variable whose get() method will block until some other
thread has set a value with the set() method, or a timeout expires.
|
BlockKind |
The different kind of blocks that a BlockInfo instance can represent.
|
BlockMetadata |
Internal block metadata generated by the compiler for consumption by the runtime.
|
BlockParseInfo |
|
BuilderHelper |
|
CallRealMethodResponse |
A response strategy that delegates method calls to the real object underlying the mock (if any).
|
CannotCreateMockException |
Thrown to indicate a problem when creating a mock object.
|
CannotInvokeRealMethodException |
Thrown to indicate that an attempt was made to delegate a method call to
a real object underlying a mock, although no such underlying object exists.
|
CaptureType |
CaptureType represents a wildcard that has gone through capture conversion.
|
CglibMockInterceptorAdapter |
|
CglibRealMethodInvoker |
|
ClassRuleExtension |
|
ClassRuleInterceptor |
|
CleanupBlock |
AST node representing a cleanup-block in a feature method.
|
ClosureBlueprint |
|
CodeArgumentConstraint |
|
CodeResponseGenerator |
|
CollectionSlot |
|
CollectionSlotFactory |
|
CollectionUtil |
|
CompositeMockFactory |
|
Condition |
Runtime representation of an evaluated condition.
|
ConditionBlock |
Indicates that the closure argument(s) of the annotated method are code blocks
containing conditions, allowing to leave off the assert keyword.
|
ConditionNotSatisfiedError |
|
ConditionRewriter |
Rewrites explicit ("assert x > 3") and implicit ("x > 3") condition
statements.
|
ConfigurationBuilder |
|
ConfigurationException |
Thrown to indicate that there is a problem with Spock's configuration (file).
|
ConfigurationScriptLoader |
|
ConfineMetaClassChanges |
Confines any changes made to the meta classes of the specified classes to the
annotated scope.
|
ConfineMetaClassChangesExtension |
|
ConfineMetaClassChangesInterceptor |
|
ConstantResponseGenerator |
|
DataProviderInfo |
Internal metadata about a data provider from which the runtime model is built.
|
DataProviderMetadata |
|
DeepBlockRewriter |
Walks the statement and expression tree to:
- rewrite explicit conditions,
- rewrite interactions,
- rewrite core language primitives (members of class Specification)
- Forbid
Also records whether conditions and interactions were found.
|
DefaultEqualsHashCodeToStringInteractions |
|
DefaultResponseGenerator |
|
DelegatingMockInvocation |
|
DelegatingScript |
|
DelegatingScriptBlueprint |
|
DiffedArrayRenderer |
|
DiffedCollectionRenderer |
|
DiffedMapRenderer |
|
DiffedObjectAsBeanRenderer |
|
DiffedObjectAsStringRenderer |
|
DiffedSetRenderer |
|
DummyStackTraceFilter |
|
DynamicMockMethod |
|
DynamicProxyMockInterceptorAdapter |
|
EditDistance |
Calculates Levenshtein distance and corresponding edit path between two character sequences.
|
EditOperation |
|
EditOperation.Kind |
|
EditPathRenderer |
|
EmptyOrDummyResponse |
A response strategy that returns zero, an "empty" object, or a "dummy" object,
depending on the method's declared return type.
|
EqualArgumentConstraint |
|
EqualMethodNameConstraint |
|
EqualPropertyNameConstraint |
|
ErrorInfo |
|
ErrorReporter |
Reporting facility for problems found during compilation.
|
ExceptionUtil |
|
ExpectBlock |
|
ExpressionInfo |
|
ExpressionInfoBuilder |
|
ExpressionInfoConverter |
|
ExpressionInfoRenderer |
Creates a string representation of an assertion and its recorded values.
|
ExpressionInfoValueRenderer |
|
ExpressionReplacingVisitorSupport |
Groovy AST visitor that allows to replace both statements and expressions.
|
ExtensionAnnotation |
|
ExtensionClassesLoader |
Scans class path for extension descriptors and loads the extension classes specified therein.
|
ExtensionException |
|
ExtensionRegistry |
Collects all Spock extensions found on the class path (via their descriptor).
|
ExtensionRunner |
Runs global and local extensions for a spec.
|
ExtensionUtil |
|
FailingRealMethodInvoker |
|
FailsWith |
Indicates that a feature method is expected to fail with the given exception.
|
FailsWithExtension |
|
FailsWithInterceptor |
|
FeatureInfo |
|
FeatureMetadata |
Internal metadata about a feature from which the runtime model is built.
|
FeatureMethod |
AST node representing a feature method.
|
Field |
AST node representing a user-defined instance field.
|
FieldInfo |
Runtime information about a field in a Spock specification.
|
FieldInitializationExpression |
An assignment of the form "x = expr", where x is a field and expr is a field
initializer expression.
|
FieldMetadata |
Internal metadata about a field, from which the runtime model is built.
|
Filter<T> |
|
FixtureMethod |
AST node representing a fixture method.
|
GenericTypeReflector |
Utility class for doing reflection on types.
|
GestaltBuilder |
|
GroovyMockFactory |
|
GroovyMockInterceptor |
|
GroovyMockMetaClass |
|
GroovyRealMethodInvoker |
|
GroovyReleaseInfo |
|
GroovyRuntimeUtil |
Provides convenient access to Groovy language and runtime features.
|
GuiceExtension |
|
GuiceExtensionException |
|
GuiceInterceptor |
Creates a Guice injector, and injects Guice-provided objects into specifications.
|
HamcrestFacade |
Facade around Hamcrest API that works both with Hamcrest 1.1 and 1.2,
providing better failure descriptions if the latter is available.
|
HamcrestSupport |
|
HashMultiset<E> |
HashMap based implementation of IMultiset.
|
HelperMethod |
|
IAnnotationDrivenExtension<T extends java.lang.annotation.Annotation> |
|
IArgumentConstraint |
A constraint on an invocation argument.
|
IBlueprint |
|
IChainableResponseGenerator |
Generates return values for invocations on mock objects.
|
IConfigurationRegistry |
|
IDefaultResponse |
A strategy for responding to unexpected method calls.
|
Identifiers |
Identifiers used throughout the core.
|
IExcludable |
|
IFeatureFilter |
|
IFeatureSortOrder |
|
IFunction<D,C> |
A function from domain D to co-domain C.
|
IGestalt |
|
IGlobalExtension |
|
Ignore |
Indicates that a specification or feature method should not be run.
|
IgnoreExtension |
|
IgnoreIf |
Ignores the annotated spec/feature if the given condition holds.
|
IgnoreIfExtension |
|
IgnoreRest |
Indicates that all feature methods except the ones carrying this annotation
should be ignored.
|
IgnoreRestExtension |
|
IInteractionAware |
|
IInteractionScope |
An interaction scope holds a group of interactions that will be verified,
and thereafter removed, at the same time.
|
IInterceptable |
|
IInvocationConstraint |
|
IMatcher<T> |
|
IMethodInterceptor |
|
IMethodInvocation |
|
IMethodNameMapper |
Maps method names in bytecode to their logical names.
|
Immutable |
|
IMockConfiguration |
Configuration options for mock objects.
|
IMockController |
|
IMockFactory |
|
IMockInteraction |
An anticipated interaction between the SUT and one or more mock objects.
|
IMockInvocation |
A method invocation on a mock object.
|
IMockMethod |
Represents a method that can be mocked.
|
IMockObject |
|
IMultiset<E> |
Set-like data structure where each element has a cardinality.
|
IncludeExcludeCriteria |
Configuration indicating which specs and methods should be
included/excluded from a spec run.
|
IncludeExcludeExtension |
|
IncompatibleGroovyVersionException |
|
Inspect |
Marks a declaration in Groovy code so that it can be easily accessed using
AstInspector.
|
InstanceFieldAccessChecker |
|
InteractionBuilder |
|
InteractionNotSatisfiedError |
Base class for exceptions thrown to indicate that one or more interactions
were not satisfied.
|
InteractionRewriter |
Creates the AST representation of an InteractionBuilder build sequence.
|
InteractionScope |
A scope for interactions defined outside a then-block
|
InternalIdentifiers |
Internal identifiers in generated byte code.
|
InternalSpockError |
|
InvalidSpecCompileException |
Indicates that a spec was found to contain a (syntactic or semantic)
error during compilation.
|
InvalidSpecException |
Indicates that a Spec has done something it is not supposed to do.
|
IObjectRenderer<T> |
|
IObjectRendererService |
|
IoUtil |
|
IProxyBasedMockInterceptor |
|
IResponseGenerator |
Generates responses to mock invocations.
|
IRewriteResources |
|
IRunListener |
Listens to a spec run.
|
IRunSupervisor |
|
ISkippable |
|
ISlot |
|
ISlotFactory |
|
ISpecialMethodCall |
|
ISpecificationContext |
|
ISpecVisitor |
|
ISpockMockObject |
Marker-like interface implemented by all mock objects that allows
MockDetector to detect mock objects.
|
Issue |
Indicates that a feature method or specification relates to one or more
issues in an external issue tracking system.
|
IStackTraceFilter |
|
IterableResponseGenerator |
Generates result values from an iterable object.
|
IterationInfo |
Runtime information about an iteration of a feature method.
|
IThrowableFunction<D,C,T extends java.lang.Throwable> |
A function from domain D to co-domain C that may throw a checked exception.
|
JavaMockFactory |
|
JavaMockInterceptor |
|
JUnitDescriptionGenerator |
Generates and attaches JUnit Description's to a SpecInfo's nodes.
|
JUnitFilterAdapter |
Adapts an org.junit.runner.manipulation.Filter to an IMethodInfoFilter.
|
JUnitFixtureMethodsExtension |
Adapts the JUnit Before , After , BeforeClass and AfterClass fixture mechanism to Spock.
|
JUnitSorterAdapter |
Adapts an org.junit.runner.manipulation.Sorter to a IMethodInfoSorter.
|
JUnitSupervisor |
|
LineBuilder |
|
LinkedHashMultiset<E> |
LinkedHashMap based implementation of IMultiset.
|
MasterRunListener |
|
Matchers |
|
Method |
AST node representing a Spec method (one of fixture method, feature method, helper method).
|
MethodInfo |
Runtime information about a method in a Spock specification.
|
MethodInvocation |
|
MethodKind |
The different kinds of methods that a MethodInfo instance can represent.
|
MethodRuleInterceptor |
|
MockConfiguration |
|
MockController |
|
MockDetector |
Detects mock objects and provides information about them.
|
MockImplementation |
Determines how method calls are processed and matched against interactions.
|
MockingApi |
Spock's mocking API primarily consists of the following factory methods:
Mock()
Creates a general-purpose test double that supports both stubbing and mocking.
Stub()
Creates a test double that supports stubbing but not mocking.
Spy()
Creates a test double that, by default, delegates all calls to a real object.
|
MockInstantiator |
|
MockInteraction |
An anticipated interaction between the SUT and one or more mock objects.
|
MockInteractionDecorator |
|
MockInvocation |
|
MockNature |
A named set of defaults for a mock's configuration options.
|
MockObject |
|
MopUtil |
|
NamedArgumentListConstraint |
|
NameProvider<T> |
|
NegatingArgumentConstraint |
|
Node<P extends Node,A> |
Base class for all SpecL AST nodes.
|
NodeInfo<P extends NodeInfo,R extends java.lang.reflect.AnnotatedElement> |
Base class for runtime information about an element in a Spock specification.
|
NoSpecialMethodCall |
|
NotThreadSafe |
|
Nullable |
Indicates that the annotated field, parameter, or return value of the
annotated method is allowed to be null.
|
ObjectRendererService |
|
ObjectUtil |
Utility methods applicable to (almost) any object.
|
OldValueExpression |
Used to represent the argument to Specification.old() once it has been processed
by IRewriteResources.captureOldValue().
|
OptimizeRunOrderExtension |
Inspired from JUnit's MaxCore.
|
OptimizeRunOrderSuite |
|
Pair<E1,E2> |
An immmutable pair of elements.
|
ParameterizedSpecRunner |
Adds the ability to run parameterized features.
|
PojoBuilder |
|
PojoGestalt |
|
PollingConditions |
Repeatedly evaluates one or more conditions until they are satisfied or a timeout has elapsed.
|
PositionalArgumentListConstraint |
|
PropertySlot |
|
ProxyBasedMockFactory |
Some implementation details of this class are inspired from Spring, EasyMock
Class Extensions, JMock, Mockito, and this thread:
http://www.nabble.com/Callbacks%2C-classes-and-instances-to4092596.html
|
ReflectionUtil |
|
RegexMethodNameConstraint |
|
RegexPropertyNameConstraint |
|
ResponseGeneratorChain |
|
RevertMetaClassRunListener |
|
RuleExtension |
|
RunContext |
|
RunnerConfiguration |
Configuration settings for the spec runner.
|
RunStatus |
|
SafeIterationNameProvider |
|
Sculpturer |
Forms a gestalt from its blueprint.
|
See |
One or more references to external information related to a specification or feature.
|
SetterLikeSlot |
|
SetterSlotFactory |
|
SetupBlock |
AST node representing a setup-block in a feature method.
|
Shared |
Indicates that a field is shared among all feature methods in a
specification.
|
SingleResponseGenerator |
|
SourceLookup |
|
Spec |
AST node representing a Spock specification.
|
SpecAnnotator |
Puts all spec information required at runtime into annotations
attached to class members.
|
SpecClassFileFinder |
Finds all class files below a base directory that contain a runnable spec.
|
SpecClassFileSelector |
Ant selector that selects class files containing Spock specifications.
|
SpecialMethodCall |
|
Specification |
Base class for Spock specifications.
|
SpecificationContext |
|
SpecInfo |
Runtime information about a Spock specification.
|
SpecInfoBuilder |
Builds a SpecInfo from a Class instance.
|
SpecInternals |
|
SpecMetadata |
Internal specification metadata generated by the compiler for consumption
by the runtime.
|
SpecParser |
Given the abstract syntax tree of a Groovy class representing a Spock
specification, builds an object model of the specification.
|
SpecRewriter |
A Spec visitor responsible for most of the rewriting of a Spec's AST.
|
SpecRunHistory |
|
SpecUtil |
Utility methods related to specifications.
|
SpockAssertionError |
|
SpockComparisonFailure |
Thrown when a condition of the form 'expr1 == expr2' fails.
|
SpockConfigurationGestalt |
|
SpockExecutionException |
Indicates that a problem occurred during Spec execution.
|
SpockReleaseInfo |
|
SpockRuntime |
|
SpockTimeoutError |
Indicates that an operation timed out.
|
SpockTransform |
AST transformation for rewriting Spock specifications.
|
SpreadWildcard |
|
SpreadWildcardArgumentConstraint |
|
Sputnik |
A JUnit runner for Spock specifications.
|
StackTraceFilter |
Filters an exception's stack trace.
|
StatementReplacingVisitorSupport |
Adds the ability to replace statements.
|
StaticMockMethod |
|
Stepwise |
Indicates that a spec's feature methods should be run sequentially
in their declared order (even in the presence of a parallel spec runner),
always starting from the first method.
|
StepwiseExtension |
|
Subject |
Indicates which objects/classes are the subjects of a specification.
|
TargetConstraint |
|
TestRuleInterceptor |
|
TextPosition |
A position in a text, given as a line/column pair.
|
TextRegion |
A region of text spanning all characters between a start position (inclusive)
and an end position (exclusive).
|
TextUtil |
Utility methods for text processing.
|
ThenBlock |
AST node representing a then-block in a feature method.
|
ThreadSafe |
|
Timeout |
Indicates that the execution of a method should time out
after the given duration has elapsed.
|
TimeoutExtension |
|
TimeoutInterceptor |
Times out a method invocation if it takes too long.
|
TimeUtil |
|
TooFewInvocationsError |
Thrown to indicate that one or more mandatory interactions matched too few invocations.
|
TooManyInvocationsError |
Thrown to indicate that a mandatory interaction matched too many invocations.
|
TypeArgumentConstraint |
|
TypeToken<T> |
Wrapper around Type .
|
UnallowedExceptionThrownError |
|
UnreachableCodeError |
|
Unroll |
Indicates that iterations of a data-driven feature should be made visible
as separate features to the outside world (IDEs, reports, etc.).
|
UnrollExtension |
|
UnrollNameProvider |
|
Use |
Activates one or more Groovy categories while the annotated spec method
or class executes.
|
UseExtension |
|
UseInterceptor |
|
UseModules |
Activates Guice integration for a specification.
|
ValueRecorder |
Records the values in a condition.
|
VersionChecker |
|
VersionNumber |
A version number with format major.minor.micro-qualifier.
|
WhenBlock |
AST node representing a when-block in a feature method.
|
WhereBlock |
|
WhereBlockRewriter |
|
Wildcard |
|
WildcardArgumentConstraint |
|
WildcardMethodNameConstraint |
|
WildcardResponseGenerator |
Returns the default value for the invoked method's return type.
|
WrappedException |
Wraps a checked exception s.t.
|
WrongExceptionThrownError |
|
WrongInvocationOrderError |
Thrown if an invocation on a mock object occurs too late.
|
ZeroOrNullResponse |
A response strategy that returns zero, false, or null, depending on the method's return type.
|