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>
public class GuiceyAppExtension extends AbstractAppExtension<UseGuiceyApp>
Spock extension for guice-only lightweight tests.- Since:
- 02.01.2015
-
-
Constructor Summary
Constructors Constructor Description GuiceyAppExtension()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected GuiceyInterceptor.EnvironmentSupportbuildSupport(UseGuiceyApp annotation, java.lang.Class<?> test)protected java.lang.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, visitSpecAnnotation
-
-
-
-
Method Detail
-
buildSupport
protected GuiceyInterceptor.EnvironmentSupport buildSupport(UseGuiceyApp annotation, java.lang.Class<?> test)
- Specified by:
buildSupportin classAbstractAppExtension<UseGuiceyApp>- Parameters:
annotation- extension annotation instancetest- test class- Returns:
- environment support object
-
getHooks
protected java.lang.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
-
-