Class TestLogger

java.lang.Object
noaa.coastwatch.test.TestLogger
All Implemented Interfaces:
TerminalColors

public class TestLogger extends Object implements TerminalColors
The TestLogger object provides a singleton interface for printing testing messages.
Since:
3.3.1
Author:
Peter Hollemans
  • Method Details

    • getInstance

      public static TestLogger getInstance()
      Gets the singleton instance of this class.
      Returns:
      the singeton instance.
    • startClass

      public void startClass(Class c)
      Prints a start test message for a series of class tests.
      Parameters:
      c - the class that is being tested.
    • test

      public void test(String name)
      Prints a start test message.
      Parameters:
      name - the name of the test that is being started.
    • debug

      public void debug(Object obj)
      Prints a debug message.
      Parameters:
      obj - the object to print in the message.
    • error

      public void error(String message)
      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.