Package org.spockframework.runtime
Class SpecificationContext
- java.lang.Object
-
- org.spockframework.runtime.SpecificationContext
-
- All Implemented Interfaces:
ISpecificationContext
public class SpecificationContext extends java.lang.Object implements ISpecificationContext
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
GET_MOCK_CONTROLLER
static java.lang.String
GET_SHARED_INSTANCE
static java.lang.String
SET_THROWN_EXCEPTION
-
Constructor Summary
Constructors Constructor Description SpecificationContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IterationInfo
getIterationInfo()
IMockController
getMockController()
Specification
getSharedInstance()
java.lang.Throwable
getThrownException()
void
setIterationInfo(IterationInfo iterationInfo)
void
setSharedInstance(Specification sharedInstance)
void
setThrownException(java.lang.Throwable exception)
-
-
-
Field Detail
-
GET_SHARED_INSTANCE
public static final java.lang.String GET_SHARED_INSTANCE
- See Also:
- Constant Field Values
-
SET_THROWN_EXCEPTION
public static java.lang.String SET_THROWN_EXCEPTION
-
GET_MOCK_CONTROLLER
public static java.lang.String GET_MOCK_CONTROLLER
-
-
Method Detail
-
getSharedInstance
public Specification getSharedInstance()
-
setSharedInstance
public void setSharedInstance(Specification sharedInstance)
-
getIterationInfo
public IterationInfo getIterationInfo()
- Specified by:
getIterationInfo
in interfaceISpecificationContext
-
setIterationInfo
public void setIterationInfo(IterationInfo iterationInfo)
-
getThrownException
public java.lang.Throwable getThrownException()
- Specified by:
getThrownException
in interfaceISpecificationContext
-
setThrownException
public void setThrownException(java.lang.Throwable exception)
-
getMockController
public IMockController getMockController()
- Specified by:
getMockController
in interfaceISpecificationContext
-
-