Package noaa.coastwatch.test
Class TestLogger
java.lang.Object
noaa.coastwatch.test.TestLogger
- All Implemented Interfaces:
TerminalColors
The
TestLogger
object provides a singleton interface for
printing testing messages.- Since:
- 3.3.1
- Author:
- Peter Hollemans
-
Field Summary
Fields inherited from interface noaa.coastwatch.test.TerminalColors
ANSI_BLACK, ANSI_BLUE, ANSI_CYAN, ANSI_GREEN, ANSI_PURPLE, ANSI_RED, ANSI_RESET, ANSI_WHITE, ANSI_YELLOW
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Prints a debug message.void
Prints an error message.void
failed()
Prints a test failed message.static TestLogger
Gets the singleton instance of this class.void
passed()
Prints a test passed message.void
startClass
(Class c) Prints a start test message for a series of class tests.void
Prints a start test message.
-
Method Details
-
getInstance
Gets the singleton instance of this class.- Returns:
- the singeton instance.
-
startClass
Prints a start test message for a series of class tests.- Parameters:
c
- the class that is being tested.
-
test
Prints a start test message.- Parameters:
name
- the name of the test that is being started.
-
debug
Prints a debug message.- Parameters:
obj
- the object to print in the message.
-
error
Prints an error message.- Parameters:
message
- the error message to print.
-
passed
public void passed()Prints a test passed message. -
failed
public void failed()Prints a test failed message.
-