Interface CommandRunBuilder.CommandListener<C extends io.dropwizard.core.Configuration>

Type Parameters:
C - configuration type
Enclosing class:
CommandRunBuilder<C extends io.dropwizard.core.Configuration>

public static interface CommandRunBuilder.CommandListener<C extends io.dropwizard.core.Configuration>
Command execution listener. Could be used to apply some additional initialization and clean for command execution.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    Called after command execution (even if execution fails).
    default void
    setup(String... args)
    Called before command execution.
  • Method Details

    • setup

      default void setup(String... args)
      Called before command execution.
      Parameters:
      args - run arguments (without added configuration file) - exactly as specified in test
    • cleanup

      default void cleanup(CommandResult<C> result)
      Called after command execution (even if execution fails).
      Parameters:
      result - command execution result