Class TestLogger

java.lang.Object
org.junit.rules.TestWatcher
io.debezium.junit.TestLogger
All Implemented Interfaces:
org.junit.rules.TestRule

public class TestLogger extends org.junit.rules.TestWatcher
JUnit rule that logs start and end of each test method execution.
Author:
Jiri Pechanec
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final org.slf4j.Logger
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    TestLogger(org.slf4j.Logger logger)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    failed(Throwable e, org.junit.runner.Description description)
     
    void
    starting(org.junit.runner.Description description)
     
    void
    succeeded(org.junit.runner.Description description)
     

    Methods inherited from class org.junit.rules.TestWatcher

    apply, finished, skipped, skipped

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • logger

      private final org.slf4j.Logger logger
  • Constructor Details

    • TestLogger

      public TestLogger(org.slf4j.Logger logger)
  • Method Details

    • starting

      public void starting(org.junit.runner.Description description)
      Overrides:
      starting in class org.junit.rules.TestWatcher
    • succeeded

      public void succeeded(org.junit.runner.Description description)
      Overrides:
      succeeded in class org.junit.rules.TestWatcher
    • failed

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