Package org.anchoranalysis.test.image
Class InputOutputContextFixture
Object
InputOutputContextFixture
A fixture for creating
InputOutputContext instances for testing purposes.
This class provides utility methods to create InputOutputContext objects with different configurations, such as suppressed loggers or specific model directories.
-
Method Summary
Modifier and TypeMethodDescriptionstatic InputOutputContextwithLogger(Logger logger) Creates an InputOutputContext with a specified logger.static InputOutputContextCreates an InputOutputContext with a suppressed logger.static InputOutputContextwithSuppressedLogger(Path modelDir) Creates an InputOutputContext with a suppressed logger and a specified model directory.
-
Method Details
-
withSuppressedLogger
Creates an InputOutputContext with a suppressed logger and a specified model directory.- Parameters:
modelDir- The path to the model directory.- Returns:
- An InputOutputContext with a suppressed logger and the specified model directory.
-
withSuppressedLogger
Creates an InputOutputContext with a suppressed logger.- Returns:
- An InputOutputContext with a suppressed logger.
-
withLogger
Creates an InputOutputContext with a specified logger.- Parameters:
logger- The logger to be used in the InputOutputContext.- Returns:
- An InputOutputContext with the specified logger.
-