public class TestLogger extends java.lang.Object implements TerminalColors
TestLogger
object provides a singleton interface for
printing testing messages.ANSI_BLACK, ANSI_BLUE, ANSI_CYAN, ANSI_GREEN, ANSI_PURPLE, ANSI_RED, ANSI_RESET, ANSI_WHITE, ANSI_YELLOW
Modifier and Type | Method and Description |
---|---|
void |
debug(java.lang.Object obj)
Prints a debug message.
|
void |
error(java.lang.String message)
Prints an error message.
|
void |
failed()
Prints a test failed message.
|
static TestLogger |
getInstance()
Gets the singleton instance of this class.
|
void |
passed()
Prints a test passed message.
|
void |
startClass(java.lang.Class c)
Prints a start test message for a series of class tests.
|
void |
test(java.lang.String name)
Prints a start test message.
|
public static TestLogger getInstance()
public void startClass(java.lang.Class c)
c
- the class that is being tested.public void test(java.lang.String name)
name
- the name of the test that is being started.public void debug(java.lang.Object obj)
obj
- the object to print in the message.public void error(java.lang.String message)
message
- the error message to print.public void passed()
public void failed()