Class GuiceyAppExtension
java.lang.Object
org.spockframework.runtime.extension.AbstractAnnotationDrivenExtension<T>
ru.vyarus.dropwizard.guice.test.spock.ext.AbstractAppExtension<UseGuiceyApp>
ru.vyarus.dropwizard.guice.test.spock.ext.GuiceyAppExtension
- All Implemented Interfaces:
org.spockframework.runtime.extension.IAnnotationDrivenExtension<UseGuiceyApp>
Spock extension for guice-only lightweight tests.
- Since:
- 02.01.2015
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected GuiceyInterceptor.EnvironmentSupportbuildSupport(UseGuiceyApp annotation, Class<?> test) protected Class<? extends ru.vyarus.dropwizard.guice.hook.GuiceyConfigurationHook>[]getHooks(UseGuiceyApp annotation) Methods inherited from class ru.vyarus.dropwizard.guice.test.spock.ext.AbstractAppExtension
convertOverrides, visitSpec, visitSpecAnnotationMethods inherited from class org.spockframework.runtime.extension.AbstractAnnotationDrivenExtension
visitFeatureAnnotation, visitFieldAnnotation, visitFixtureAnnotation
-
Constructor Details
-
GuiceyAppExtension
public GuiceyAppExtension()
-
-
Method Details
-
buildSupport
- Specified by:
buildSupportin classAbstractAppExtension<UseGuiceyApp>- Parameters:
annotation- extension annotation instancetest- test class- Returns:
- environment support object
-
getHooks
protected Class<? extends ru.vyarus.dropwizard.guice.hook.GuiceyConfigurationHook>[] getHooks(UseGuiceyApp annotation) - Specified by:
getHooksin classAbstractAppExtension<UseGuiceyApp>- Parameters:
annotation- extension annotation instance- Returns:
- configuration hooks defined in annotation
-