|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.codehaus.groovy.grails.compiler.injection.test.TestMixinTransformation
org.codehaus.groovy.grails.compiler.injection.test.TestForTransformation
org.codehaus.groovy.grails.compiler.injection.test.MockTransformation
public class MockTransformation
Used by the Mock local transformation to add
mocking capabilities for the given classes.
| Field Summary |
|---|
| Fields inherited from class org.codehaus.groovy.grails.compiler.injection.test.TestForTransformation |
|---|
artefactTypeToTestMap, BEFORE_ANNOTATION, BEFORE_CLASS_NODE, DOMAIN_TYPE, GROOVY_TEST_CASE_CLASS, TEST_ANNOTATION |
| Fields inherited from class org.codehaus.groovy.grails.compiler.injection.test.TestMixinTransformation |
|---|
GROOVY_OBJECT_CLASS_NODE, MIXIN_METHOD_ANNOTATION, OBJECT_CLASS, SET_UP_METHOD, SPEC_CLASS, TEAR_DOWN_METHOD, THIS_EXPRESSION |
| Constructor Summary | |
|---|---|
MockTransformation()
|
|
| Method Summary | |
|---|---|
void |
visit(org.codehaus.groovy.ast.ASTNode[] astNodes,
org.codehaus.groovy.control.SourceUnit source)
|
| Methods inherited from class org.codehaus.groovy.grails.compiler.injection.test.TestForTransformation |
|---|
addClassUnderTestMethod, addMockCollaborator, getResourceLocator, testFor, weaveMixinClass, weaveMock |
| Methods inherited from class org.codehaus.groovy.grails.compiler.injection.test.TestMixinTransformation |
|---|
addMethodCallsToMethod, error, getListOfClasses, getOrCreateMethodBody, getOrCreateNoArgsMethodBody, hasAnnotation, hasDeclaredMethod, isAddableMethod, isCandidateMethod, isJunit3Test, isSpockTest, weaveMixinsIntoClass |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MockTransformation()
| Method Detail |
|---|
public void visit(org.codehaus.groovy.ast.ASTNode[] astNodes,
org.codehaus.groovy.control.SourceUnit source)
visit in interface org.codehaus.groovy.transform.ASTTransformationvisit in class TestForTransformation
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||