Class TestFailureLogger

java.lang.Object
org.junit.rules.TestWatcher
org.codice.ddf.test.common.rules.TestFailureLogger
All Implemented Interfaces:
org.junit.rules.TestRule

public class TestFailureLogger extends org.junit.rules.TestWatcher
Test rule used to log the state of the OSGi bundles after a test failure. The state of all bundles will be logged if the log level for this class is set to DEBUG, otherwise only the list of inactive bundles will be logged.
  • Constructor Details

    • TestFailureLogger

      public TestFailureLogger()
  • Method Details

    • failed

      protected void failed(Throwable e, org.junit.runner.Description description)
      Overrides:
      failed in class org.junit.rules.TestWatcher