org.codehaus.groovy.grails.compiler.injection.test
Class MockTransformation

java.lang.Object
  extended by org.codehaus.groovy.grails.compiler.injection.test.TestMixinTransformation
      extended by org.codehaus.groovy.grails.compiler.injection.test.TestForTransformation
          extended by org.codehaus.groovy.grails.compiler.injection.test.MockTransformation
All Implemented Interfaces:
org.codehaus.groovy.transform.ASTTransformation

public class MockTransformation
extends TestForTransformation

Used by the Mock local transformation to add mocking capabilities for the given classes.

Since:
2.0

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

MockTransformation

public MockTransformation()
Method Detail

visit

public void visit(org.codehaus.groovy.ast.ASTNode[] astNodes,
                  org.codehaus.groovy.control.SourceUnit source)
Specified by:
visit in interface org.codehaus.groovy.transform.ASTTransformation
Overrides:
visit in class TestForTransformation