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@interfaceIndicates that the closure argument(s) of the annotated method are code blocks containing conditions, allowing to leave off the assert keyword.interfaceMethods in org.spockframework.lang with annotations of type BetaModifier and TypeMethodDescriptionSpecInternals.createMock(String name, Type 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 TypeClassDescriptionclassA response strategy that delegates method calls to the real object underlying the mock (if any).classA response strategy that returns zero, an "empty" object, or a "dummy" object, depending on the method's declared return type.interfaceConfiguration options for mock objects.interfaceGenerates responses to mock invocations.classDetects mock objects and provides information about them.enumDetermines how method calls are processed and matched against interactions.enumA named set of defaults for a mock's configuration options.classA 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> TMockingApi.GroovyMock(Class<T> type) Creates a Groovy mock with the specified type.<T> TMockingApi.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> TMockingApi.GroovyMock(Map<String, Object> options, Class<T> type) Creates a Groovy mock with the specified options and type.<T> TMockingApi.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> TCreates a Groovy spy with the specified type.<T> TCreates 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> TCreates a Groovy spy with the specified options and type.<T> TCreates 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> TMockingApi.GroovyStub(Class<T> type) Creates a Groovy stub with the specified type.<T> TMockingApi.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> TMockingApi.GroovyStub(Map<String, Object> options, Class<T> type) Creates a Groovy stub with the specified options and type.<T> TMockingApi.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> TCreates 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> TCreates a mock with the specified options and type.<T> TCreates 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> TCreates a spy with the specified type.<T> TCreates 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> TCreates a spy with the specified options and type.<T> TCreates 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> TCreates a stub with the specified type.<T> TCreates 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> TCreates a stub with the specified options and type.<T> TCreates a stub with the specified options, type, and interactions.voidSets the specified object as the implicit target of the top-level conditions and/or interactions contained in the specified code block, thereby avoiding the need to repeat the same expression multiple times.voidSame asSpecification.with(Object, groovy.lang.Closure), except that it also states that the specified target has the specified type, throwing aSpockAssertionErrorotherwise. -
Uses of Beta in spock.util.concurrent
Classes in spock.util.concurrent with annotations of type BetaModifier and TypeClassDescriptionclassRepeatedly evaluates one or more conditions until they are satisfied or a timeout has elapsed.