Package org.anchoranalysis.test.image.io
Class OutputterFixture
Object
OutputterFixture
Utility class for creating Outputter instances for testing purposes.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Outputter
Creates an Outputter instance with optionally a path to a temporary directory for outtputting files.static Outputter
outputter
(OutputManager outputManager, OutputEnabledRules outputsEnabled) Creates an Outputter instance with a specified OutputManager and OutputEnabledRules.static OutputterChecked
outputterChecked
(Optional<Path> pathTempDirectory) Creates an OutputterChecked instance with optionally a path to a temporary directory for outputting files.
-
Method Details
-
outputter
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.
-