Class MicronautTestMetaAnnotationExtension
java.lang.Object
io.micronaut.test.extensions.spock.MicronautTestMetaAnnotationExtension
- All Implemented Interfaces:
org.spockframework.runtime.extension.IGlobalExtension
@Internal
public final class MicronautTestMetaAnnotationExtension
extends Object
implements org.spockframework.runtime.extension.IGlobalExtension
Applies
MicronautSpockExtension to specs that carry MicronautTest through a
meta-annotation. Spock only runs an annotation-driven extension for an annotation declared
directly on the spec.
Spock runs global extensions before annotation-driven ones and in the order their service
files are found on the classpath, so the interceptors of a meta-annotated spec can sit outside
those of another global extension, where those of a direct MicronautTest are always
inside them.
- Since:
- 5.2.1
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.spockframework.runtime.extension.IGlobalExtension
executionStart, executionStop, start, stop
-
Constructor Details
-
MicronautTestMetaAnnotationExtension
public MicronautTestMetaAnnotationExtension()
-
-
Method Details
-
visitSpec
public void visitSpec(org.spockframework.runtime.model.SpecInfo spec) - Specified by:
visitSpecin interfaceorg.spockframework.runtime.extension.IGlobalExtension
-