Groovy Documentation

grails.test.mixin
[Java] Annotation Type Mock

java.lang.Object
  grails.test.mixin.Mock

@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE})
@GroovyASTTransformationClass("org.codehaus.groovy.grails.compiler.injection.test.MockTransformation")
public @interface Mock

Used to define a mocked collaborator when using the TestFor mixin


Method Summary
 
Methods inherited from class java.lang.Object
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), 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()
 

Groovy Documentation