| Package | Description |
|---|---|
| org.spockframework.mock |
Spock's built-in mocking framework.
|
| org.spockframework.mock.runtime | |
| org.spockframework.runtime |
| Modifier and Type | Method | Description |
|---|---|---|
Specification |
IMockObject.getSpecification() |
Returns the specification that this mock object is attached to.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.Object |
IMockFactory.create(IMockConfiguration configuration,
Specification specification) |
| Modifier and Type | Method | Description |
|---|---|---|
Specification |
MockObject.getSpecification() |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.Object |
CompositeMockFactory.create(IMockConfiguration configuration,
Specification specification) |
|
java.lang.Object |
GroovyMockFactory.create(IMockConfiguration configuration,
Specification specification) |
|
java.lang.Object |
JavaMockFactory.create(IMockConfiguration configuration,
Specification specification) |
| Constructor | Description |
|---|---|
GroovyMockInterceptor(IMockConfiguration mockConfiguration,
Specification specification,
groovy.lang.MetaClass mockMetaClass) |
|
GroovyMockMetaClass(IMockConfiguration configuration,
Specification specification,
groovy.lang.MetaClass oldMetaClass) |
|
JavaMockInterceptor(IMockConfiguration mockConfiguration,
Specification specification,
groovy.lang.MetaClass mockMetaClass) |
|
MockObject(java.lang.String name,
java.lang.Class<?> type,
java.lang.Object instance,
boolean verified,
boolean global,
IDefaultResponse defaultResponse,
Specification specification) |
| Modifier and Type | Field | Description |
|---|---|---|
protected Specification |
BaseSpecRunner.currentInstance |
|
protected Specification |
BaseSpecRunner.sharedInstance |
| Modifier and Type | Method | Description |
|---|---|---|
Specification |
SpecificationContext.getSharedInstance() |
| Modifier and Type | Method | Description |
|---|---|---|
protected SpecificationContext |
BaseSpecRunner.getSpecificationContext(Specification instance) |
|
void |
SpecificationContext.setSharedInstance(Specification sharedInstance) |
Copyright © 2018. All rights reserved