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 Beta
    Modifier and Type
    Class
    Description
    @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 Beta
    Modifier and Type
    Method
    Description
    SpecInternals.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 Beta
    Modifier and Type
    Class
    Description
    class 
    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
    Modifier and Type
    Class
    Description
    class 
     
  • Uses of Beta in spock.lang

    Methods in spock.lang with annotations of type Beta
    Modifier and Type
    Method
    Description
    MockingApi.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
    MockingApi.GroovySpy(Class<T> type)
    Creates a Groovy spy with the specified type.
    <T> T
    MockingApi.GroovySpy(Class<T> type, groovy.lang.Closure interactions)
    Creates a Groovy spy with the specified type and interactions.
    MockingApi.GroovySpy(Map<String,Object> options)
    Creates a Groovy spy with the specified options whose type and name are inferred from the left-hand side of the enclosing variable assignment.
    MockingApi.GroovySpy(Map<String,Object> options, groovy.lang.Closure interactions)
    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
    MockingApi.GroovySpy(Map<String,Object> options, Class<T> type)
    Creates a Groovy spy with the specified options and type.
    <T> T
    MockingApi.GroovySpy(Map<String,Object> options, Class<T> type, groovy.lang.Closure interactions)
    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
    MockingApi.Mock(Class<T> type, groovy.lang.Closure interactions)
    Creates a mock with the specified type and interactions.
    MockingApi.Mock(Map<String,Object> options)
    Creates a mock with the specified options whose type and name are inferred from the left-hand side of the enclosing variable assignment.
    MockingApi.Mock(Map<String,Object> options, groovy.lang.Closure interactions)
    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
    MockingApi.Mock(Map<String,Object> options, Class<T> type)
    Creates a mock with the specified options and type.
    <T> T
    MockingApi.Mock(Map<String,Object> options, Class<T> type, groovy.lang.Closure interactions)
    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
    MockingApi.Spy(Class<T> type)
    Creates a spy with the specified type.
    <T> T
    MockingApi.Spy(Class<T> type, groovy.lang.Closure interactions)
    Creates a spy with the specified type and interactions.
    MockingApi.Spy(Map<String,Object> options)
    Creates a spy with the specified options whose type and name are inferred from the left-hand side of the enclosing variable assignment.
    MockingApi.Spy(Map<String,Object> options, groovy.lang.Closure interactions)
    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
    MockingApi.Spy(Map<String,Object> options, Class<T> type)
    Creates a spy with the specified options and type.
    <T> T
    MockingApi.Spy(Map<String,Object> options, Class<T> type, groovy.lang.Closure interactions)
    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
    MockingApi.Stub(Class<T> type)
    Creates a stub with the specified type.
    <T> T
    MockingApi.Stub(Class<T> type, groovy.lang.Closure interactions)
    Creates a stub with the specified type and interactions.
    MockingApi.Stub(Map<String,Object> options)
    Creates a stub with the specified options whose type and name are inferred from the left-hand side of the enclosing variable assignment.
    MockingApi.Stub(Map<String,Object> options, groovy.lang.Closure interactions)
    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
    MockingApi.Stub(Map<String,Object> options, Class<T> type)
    Creates a stub with the specified options and type.
    <T> T
    MockingApi.Stub(Map<String,Object> options, Class<T> type, groovy.lang.Closure interactions)
    Creates a stub with the specified options, type, and interactions.
    void
    Specification.with(Object object, groovy.lang.Closure closure)
     
  • Uses of Beta in spock.util.concurrent

    Classes in spock.util.concurrent with annotations of type Beta
    Modifier and Type
    Class
    Description
    class 
    Repeatedly evaluates one or more conditions until they are satisfied or a timeout has elapsed.