Uses of Annotation Type
org.spockframework.util.Beta
Packages that use Beta
Package
Description
Spock's built-in mocking framework.
The core specification language.
Utilities for testing concurrent code.
-
Uses of Beta in org.spockframework.lang
Classes in org.spockframework.lang with annotations of type BetaModifier and TypeClassDescription@interface
Indicates that the closure argument(s) of the annotated method are code blocks containing conditions, allowing to leave off the assert keyword.interface
Methods in org.spockframework.lang with annotations of type BetaModifier and TypeMethodDescriptionSpecInternals.createMock
(String name, Class<?> type, MockNature nature, MockImplementation implementation, Map<String, Object> options, groovy.lang.Closure closure) SpecInternals.getSpecificationContext()
-
Uses of Beta in org.spockframework.mock
Classes in org.spockframework.mock with annotations of type BetaModifier and TypeClassDescriptionclass
A response strategy that delegates method calls to the real object underlying the mock (if any).class
A response strategy that returns zero, an "empty" object, or a "dummy" object, depending on the method's declared return type.interface
Configuration options for mock objects.interface
Generates responses to mock invocations.class
Detects mock objects and provides information about them.enum
Determines how method calls are processed and matched against interactions.enum
A named set of defaults for a mock's configuration options.class
A response strategy that returns zero, false, or null, depending on the method's return type. -
Uses of Beta in org.spockframework.mock.runtime
Classes in org.spockframework.mock.runtime with annotations of type Beta -
Uses of Beta in spock.lang
Methods in spock.lang with annotations of type BetaModifier and TypeMethodDescriptionMockingApi.GroovyMock()
Creates a Groovy mock whose type and name are inferred from the left-hand side of the enclosing variable assignment.MockingApi.GroovyMock
(groovy.lang.Closure interactions) Creates a Groovy mock with the specified interactions whose type and name are inferred from the left-hand side of the enclosing assignment.<T> T
MockingApi.GroovyMock
(Class<T> type) Creates a Groovy mock with the specified type.<T> T
MockingApi.GroovyMock
(Class<T> type, groovy.lang.Closure interactions) Creates a Groovy mock with the specified type and interactions.MockingApi.GroovyMock
(Map<String, Object> options) Creates a Groovy mock with the specified options whose type and name are inferred from the left-hand side of the enclosing variable assignment.MockingApi.GroovyMock
(Map<String, Object> options, groovy.lang.Closure interactions) Creates a Groovy mock with the specified options and interactions whose type and name are inferred from the left-hand side of the enclosing assignment.<T> T
MockingApi.GroovyMock
(Map<String, Object> options, Class<T> type) Creates a Groovy mock with the specified options and type.<T> T
MockingApi.GroovyMock
(Map<String, Object> options, Class<T> type, groovy.lang.Closure interactions) Creates a Groovy mock with the specified options, type, and interactions.MockingApi.GroovySpy()
Creates a Groovy spy whose type and name are inferred from the left-hand side of the enclosing variable assignment.MockingApi.GroovySpy
(groovy.lang.Closure interactions) Creates a Groovy spy with the specified interactions whose type and name are inferred from the left-hand side of the enclosing assignment.<T> T
Creates a Groovy spy with the specified type.<T> T
Creates a Groovy spy with the specified type and interactions.Creates a Groovy spy with the specified options whose type and name are inferred from the left-hand side of the enclosing variable assignment.Creates a Groovy spy with the specified options and interactions whose type and name are inferred from the left-hand side of the enclosing assignment.<T> T
Creates a Groovy spy with the specified options and type.<T> T
Creates a Groovy spy with the specified options, type, and interactions.MockingApi.GroovyStub()
Creates a Groovy stub whose type and name are inferred from the left-hand side of the enclosing variable assignment.MockingApi.GroovyStub
(groovy.lang.Closure interactions) Creates a Groovy stub with the specified interactions whose type and name are inferred from the left-hand side of the enclosing assignment.<T> T
MockingApi.GroovyStub
(Class<T> type) Creates a Groovy stub with the specified type.<T> T
MockingApi.GroovyStub
(Class<T> type, groovy.lang.Closure interactions) Creates a Groovy stub with the specified type and interactions.MockingApi.GroovyStub
(Map<String, Object> options) Creates a Groovy stub with the specified options whose type and name are inferred from the left-hand side of the enclosing variable assignment.MockingApi.GroovyStub
(Map<String, Object> options, groovy.lang.Closure interactions) Creates a Groovy stub with the specified options and interactions whose type and name are inferred from the left-hand side of the enclosing assignment.<T> T
MockingApi.GroovyStub
(Map<String, Object> options, Class<T> type) Creates a Groovy stub with the specified options and type.<T> T
MockingApi.GroovyStub
(Map<String, Object> options, Class<T> type, groovy.lang.Closure interactions) Creates a Groovy stub with the specified options, type, and interactions.MockingApi.Mock
(groovy.lang.Closure interactions) Creates a mock with the specified interactions whose type and name are inferred from the left-hand side of the enclosing assignment.<T> T
Creates a mock with the specified type and interactions.Creates a mock with the specified options whose type and name are inferred from the left-hand side of the enclosing variable assignment.Creates a mock with the specified options and interactions whose type and name are inferred from the left-hand side of the enclosing assignment.<T> T
Creates a mock with the specified options and type.<T> T
Creates a mock with the specified options, type, and interactions.MockingApi.Spy()
Creates a spy whose type and name are inferred from the left-hand side of the enclosing variable assignment.MockingApi.Spy
(groovy.lang.Closure interactions) Creates a spy with the specified interactions whose type and name are inferred from the left-hand side of the enclosing assignment.<T> T
Creates a spy with the specified type.<T> T
Creates a spy with the specified type and interactions.Creates a spy with the specified options whose type and name are inferred from the left-hand side of the enclosing variable assignment.Creates a spy with the specified options and interactions whose type and name are inferred from the left-hand side of the enclosing assignment.<T> T
Creates a spy with the specified options and type.<T> T
Creates a spy with the specified options, type, and interactions.MockingApi.Stub()
Creates a stub whose type and name are inferred from the left-hand side of the enclosing variable assignment.MockingApi.Stub
(groovy.lang.Closure interactions) Creates a stub with the specified interactions whose type and name are inferred from the left-hand side of the enclosing assignment.<T> T
Creates a stub with the specified type.<T> T
Creates a stub with the specified type and interactions.Creates a stub with the specified options whose type and name are inferred from the left-hand side of the enclosing variable assignment.Creates a stub with the specified options and interactions whose type and name are inferred from the left-hand side of the enclosing assignment.<T> T
Creates a stub with the specified options and type.<T> T
Creates a stub with the specified options, type, and interactions.void
-
Uses of Beta in spock.util.concurrent
Classes in spock.util.concurrent with annotations of type BetaModifier and TypeClassDescriptionclass
Repeatedly evaluates one or more conditions until they are satisfied or a timeout has elapsed.