Package io.dropwizard.migrations
Class DbTestCommand<T extends Configuration>
- java.lang.Object
-
- io.dropwizard.core.cli.Command
-
- io.dropwizard.core.cli.ConfiguredCommand<T>
-
- io.dropwizard.migrations.AbstractLiquibaseCommand<T>
-
- io.dropwizard.migrations.DbTestCommand<T>
-
public class DbTestCommand<T extends Configuration> extends AbstractLiquibaseCommand<T>
-
-
Constructor Summary
Constructors Constructor Description DbTestCommand(DatabaseConfiguration<T> strategy, Class<T> configurationClass, String migrationsFileName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configure(net.sourceforge.argparse4j.inf.Subparser subparser)
Configure the command'sSubparser
.void
run(net.sourceforge.argparse4j.inf.Namespace namespace, liquibase.Liquibase liquibase)
-
Methods inherited from class io.dropwizard.migrations.AbstractLiquibaseCommand
getConfigurationClass, run
-
Methods inherited from class io.dropwizard.core.cli.ConfiguredCommand
addFileArgument, cleanup, cleanupAsynchronously, getConfiguration, run
-
Methods inherited from class io.dropwizard.core.cli.Command
getDescription, getName, onError
-
-
-
-
Constructor Detail
-
DbTestCommand
public DbTestCommand(DatabaseConfiguration<T> strategy, Class<T> configurationClass, String migrationsFileName)
-
-
Method Detail
-
configure
public void configure(net.sourceforge.argparse4j.inf.Subparser subparser)
Description copied from class:ConfiguredCommand
Configure the command'sSubparser
.N.B.: if you override this method, you must call
super.override(subparser)
in order to preserve the configuration file parameter in the subparser.- Overrides:
configure
in classAbstractLiquibaseCommand<T extends Configuration>
- Parameters:
subparser
- theSubparser
specific to the command
-
run
public void run(net.sourceforge.argparse4j.inf.Namespace namespace, liquibase.Liquibase liquibase) throws Exception
- Specified by:
run
in classAbstractLiquibaseCommand<T extends Configuration>
- Throws:
Exception
-
-