MockTransformation (Grails 3.1.10)
Date: 2016-07-28

Package: org.grails.compiler.injection.test

## [Java] Class MockTransformation

- org.grails.compiler.injection.test.MockTransformation

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

  Authors:
    Graeme Rocher
  Since:
    2.0

- - Inherited fields
    Fields inherited from class | Fields
    --- | ---
    `class TestForTransformation` | `AFTER_ANNOTATION, AFTER_CLASS_NODE, BEFORE_ANNOTATION, BEFORE_CLASS_NODE, DOMAIN_TYPE, TEST_ANNOTATION, VOID_TYPE, artefactTypeToTestMap`
    `class TestMixinTransformation` | `GROOVY_OBJECT_CLASS_NODE, MIXIN_METHOD_ANNOTATION, SET_UP_METHOD, SPEC_CLASS, TEAR_DOWN_METHOD, TEST_ANNOTATION, VOID_TYPE`

  - ### Methods Summary

    Methods
    Type | Name and description
    --- | ---
    `void` | `visit(org.codehaus.groovy.ast.ASTNode[] astNodes, org.codehaus.groovy.control.SourceUnit source)`

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class TestForTransformation` | `addClassUnderTestMethod, addMockCollaborator, addMockCollaborators, addMockCollaborators, getExistingJUnit4BeforeMethod, getExistingOrCreateJUnit4Setup, getMixinClassForArtefactType, getOrCreateTestSetupMethod, getResourceLocator, handleTestForAnnotation, registerMixin, testFor, visit, weaveMixinClass, weaveMock`
    `class TestMixinTransformation` | `addJunitRuleFields, addLegacyMixinFieldIfNonExistent, addMethodCallsToMethod, addTestRuntimeAwareMixinFieldIfNonExistent, autoAnnotateSetupTeardown, error, getListOfClasses, getOrCreateMethodBody, getOrCreateNoArgsMethodBody, hasAnnotation, hasDeclaredMethod, hasSimilarMethod, isAddableMethod, isCandidateMethod, isJunit3Test, isSpockTest, shouldSkipMethod, visit, weaveMixinIntoClass, weaveMixinsIntoClass, weaveMixinsIntoClass, weaveTestMixins, weaveTestMixins`
    `class java.lang.Object` | `java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()`

- - ### Method Detail

    - #### @java.lang.Override public void visit(org.codehaus.groovy.ast.ASTNode[] astNodes, org.codehaus.groovy.control.SourceUnit source)