JUnit 4.x integration for jul-to-slf4j bridge. See more details on jul-to-slf4j bridge.
-
Adds a JUnit 4 TestRule with @ClassRule for initializing SLF4JBridgeHandler.
Use in a test class as :
@ClassRule
public static SLF4JBridgeHandlerInitializer slf4JBridgeHandlerInitializer = new SLF4JBridgeHandlerInitializer();
or using a singleton :
@ClassRule
public static SLF4JBridgeHandlerInitializer slf4JBridgeHandlerInitializer = SLF4JBridgeHandlerInitializer.INSTANCE;