Class OutputterFixture

Object
OutputterFixture

public class OutputterFixture extends Object
Utility class for creating Outputter instances for testing purposes.
  • Method Details

    • outputter

      public static Outputter outputter(Optional<Path> pathTempDirectory) throws BindFailedException
      Creates an Outputter instance with optionally a path to a temporary directory for outtputting files.
      Parameters:
      pathTempDirectory - Optional path to a temporary directory. When undefined, an incrementing number will be used for outtputting files.
      Returns:
      A new Outputter instance.
      Throws:
      BindFailedException - If binding the outputter fails.
    • outputter

      public static Outputter outputter(OutputManager outputManager, OutputEnabledRules outputsEnabled) throws BindFailedException
      Creates an Outputter instance with a specified OutputManager and OutputEnabledRules.
      Parameters:
      outputManager - The OutputManager to use.
      outputsEnabled - The OutputEnabledRules to apply.
      Returns:
      A new Outputter instance.
      Throws:
      BindFailedException - If binding the outputter fails.
    • outputterChecked

      public static OutputterChecked outputterChecked(Optional<Path> pathTempDirectory) throws BindFailedException
      Creates an OutputterChecked instance with optionally a path to a temporary directory for outputting files.
      Parameters:
      pathTempDirectory - optional path to a temporary directory. When undefined, an incrementing number will be used for outtputting files.
      Returns:
      A new OutputterChecked instance.
      Throws:
      BindFailedException - If binding the outputter fails.