C - the configuration typepublic class DropwizardAppRule<C extends Configuration> extends Object implements org.junit.rules.TestRule
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).| Constructor and Description |
|---|
DropwizardAppRule(Class<? extends Application<C>> applicationClass,
String configPath,
ConfigOverride... configOverrides) |
| Modifier and Type | Method and Description |
|---|---|
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description) |
int |
getAdminPort() |
<A extends Application<C>> |
getApplication() |
C |
getConfiguration() |
Environment |
getEnvironment() |
int |
getLocalPort() |
Application<C> |
newApplication() |
public DropwizardAppRule(Class<? extends Application<C>> applicationClass, @Nullable String configPath, ConfigOverride... configOverrides)
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description)
apply in interface org.junit.rules.TestRulepublic C getConfiguration()
public int getLocalPort()
public int getAdminPort()
public Application<C> newApplication()
public <A extends Application<C>> A getApplication()
public Environment getEnvironment()
Copyright © 2014. All rights reserved.