C - the configuration typepublic class DropwizardTestSupport<C extends Configuration> extends Object
By default, the Application will be constructed using reflection to invoke the nullary
constructor. If your application does not provide a public nullary constructor, you will need to
override the newApplication() method to provide your application instance(s).
| Modifier and Type | Class and Description |
|---|---|
static class |
DropwizardTestSupport.ServiceListener<T extends Configuration> |
| Constructor and Description |
|---|
DropwizardTestSupport(Class<? extends Application<C>> applicationClass,
String configPath,
ConfigOverride... configOverrides) |
| Modifier and Type | Method and Description |
|---|---|
DropwizardTestSupport<C> |
addListener(DropwizardTestSupport.ServiceListener<C> listener) |
void |
after() |
void |
before() |
int |
getAdminPort() |
<A extends Application<C>> |
getApplication() |
C |
getConfiguration() |
Environment |
getEnvironment() |
int |
getLocalPort() |
com.fasterxml.jackson.databind.ObjectMapper |
getObjectMapper() |
DropwizardTestSupport<C> |
manage(io.dropwizard.lifecycle.Managed managed) |
Application<C> |
newApplication() |
public DropwizardTestSupport(Class<? extends Application<C>> applicationClass, @Nullable String configPath, ConfigOverride... configOverrides)
public DropwizardTestSupport<C> addListener(DropwizardTestSupport.ServiceListener<C> listener)
public DropwizardTestSupport<C> manage(io.dropwizard.lifecycle.Managed managed)
public void before()
public void after()
public C getConfiguration()
public int getLocalPort()
public int getAdminPort()
public Application<C> newApplication()
public <A extends Application<C>> A getApplication()
public Environment getEnvironment()
public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
Copyright © 2015. All rights reserved.