Package ru.vyarus.dropwizard.guice.test
Class TestCommand<C extends io.dropwizard.core.Configuration>
- java.lang.Object
-
- io.dropwizard.core.cli.Command
-
- io.dropwizard.core.cli.ConfiguredCommand<T>
-
- io.dropwizard.core.cli.EnvironmentCommand<C>
-
- ru.vyarus.dropwizard.guice.test.TestCommand<C>
-
- Type Parameters:
C
- configuration type
public class TestCommand<C extends io.dropwizard.core.Configuration> extends io.dropwizard.core.cli.EnvironmentCommand<C>
Lightweight variation of server command for testing purposes. Handles managed objects lifecycle.- Since:
- 23.10.2014
-
-
Constructor Summary
Constructors Constructor Description TestCommand(io.dropwizard.core.Application<C> application)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.Class<C>
getConfigurationClass()
protected void
run(io.dropwizard.core.setup.Environment environment, net.sourceforge.argparse4j.inf.Namespace namespace, C configuration)
void
stop()
-
-
-
Constructor Detail
-
TestCommand
public TestCommand(io.dropwizard.core.Application<C> application)
-
-
Method Detail
-
run
protected void run(io.dropwizard.core.setup.Environment environment, net.sourceforge.argparse4j.inf.Namespace namespace, C configuration) throws java.lang.Exception
- Specified by:
run
in classio.dropwizard.core.cli.EnvironmentCommand<C extends io.dropwizard.core.Configuration>
- Throws:
java.lang.Exception
-
stop
public void stop()
-
-