Package io.debezium.junit
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.TestWatcherJUnit rule that logs start and end of each test method execution.- Author:
- Jiri Pechanec
-
-
Field Summary
Fields Modifier and Type Field Description private org.slf4j.Loggerlogger
-
Constructor Summary
Constructors Constructor Description TestLogger(org.slf4j.Logger logger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidfailed(Throwable e, org.junit.runner.Description description)voidstarting(org.junit.runner.Description description)voidsucceeded(org.junit.runner.Description description)
-
-
-
Method Detail
-
starting
public void starting(org.junit.runner.Description description)
- Overrides:
startingin classorg.junit.rules.TestWatcher
-
succeeded
public void succeeded(org.junit.runner.Description description)
- Overrides:
succeededin classorg.junit.rules.TestWatcher
-
failed
protected void failed(Throwable e, org.junit.runner.Description description)
- Overrides:
failedin classorg.junit.rules.TestWatcher
-
-