Class GuiceyInterceptor.AbstractEnvironmentSupport
java.lang.Object
ru.vyarus.dropwizard.guice.test.spock.ext.GuiceyInterceptor.AbstractEnvironmentSupport
- All Implemented Interfaces:
GuiceyInterceptor.EnvironmentSupport
- Enclosing class:
- GuiceyInterceptor
public abstract static class GuiceyInterceptor.AbstractEnvironmentSupport
extends Object
implements GuiceyInterceptor.EnvironmentSupport
Base environment support implementation. Used as-is for dropwizard test and requires advanced command
handling for guicey test (because dropwizard support will not properly shutdown it).
-
Constructor Details
-
AbstractEnvironmentSupport
Create environment support.- Parameters:
test- test class
-
-
Method Details
-
build
protected abstract io.dropwizard.testing.DropwizardTestSupport build()- Returns:
- created support object instance
-
before
Description copied from interface:GuiceyInterceptor.EnvironmentSupportPrepare environment.- Specified by:
beforein interfaceGuiceyInterceptor.EnvironmentSupport- Throws:
Exception- on error
-
after
public void after()Description copied from interface:GuiceyInterceptor.EnvironmentSupportShutdown environment.- Specified by:
afterin interfaceGuiceyInterceptor.EnvironmentSupport
-
getInjector
public com.google.inject.Injector getInjector()- Specified by:
getInjectorin interfaceGuiceyInterceptor.EnvironmentSupport- Returns:
- injector instance
-
getClient
public ru.vyarus.dropwizard.guice.test.ClientSupport getClient()- Specified by:
getClientin interfaceGuiceyInterceptor.EnvironmentSupport- Returns:
- client object
-