Class DropwizardAppExtension
java.lang.Object
org.spockframework.runtime.extension.AbstractAnnotationDrivenExtension<T>
ru.vyarus.dropwizard.guice.test.spock.ext.AbstractAppExtension<UseDropwizardApp>
ru.vyarus.dropwizard.guice.test.spock.ext.DropwizardAppExtension
- All Implemented Interfaces:
org.spockframework.runtime.extension.IAnnotationDrivenExtension<UseDropwizardApp>
Spock extension for starting complete dropwizard app.
- Since:
- 03.01.2015
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected GuiceyInterceptor.EnvironmentSupportbuildSupport(UseDropwizardApp annotation, Class<?> test) protected Class<? extends ru.vyarus.dropwizard.guice.hook.GuiceyConfigurationHook>[]getHooks(UseDropwizardApp 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
-
DropwizardAppExtension
public DropwizardAppExtension()
-
-
Method Details
-
buildSupport
protected GuiceyInterceptor.EnvironmentSupport buildSupport(UseDropwizardApp annotation, Class<?> test) - Specified by:
buildSupportin classAbstractAppExtension<UseDropwizardApp>- Parameters:
annotation- extension annotation instancetest- test class- Returns:
- environment support object
-
getHooks
protected Class<? extends ru.vyarus.dropwizard.guice.hook.GuiceyConfigurationHook>[] getHooks(UseDropwizardApp annotation) - Specified by:
getHooksin classAbstractAppExtension<UseDropwizardApp>- Parameters:
annotation- extension annotation instance- Returns:
- configuration hooks defined in annotation
-