Search in sources :

Example 11 with LoggerTestTool

use of org.apache.zookeeper.test.LoggerTestTool in project zookeeper by apache.

the class StandaloneServerAuditTest method setup.

@BeforeAll
public static void setup() {
    System.setProperty(ZKAuditProvider.AUDIT_ENABLE, "true");
    LoggerTestTool loggerTestTool = new LoggerTestTool(Slf4jAuditLogger.class);
    os = loggerTestTool.getOutputStream();
}
Also used : LoggerTestTool(org.apache.zookeeper.test.LoggerTestTool) BeforeAll(org.junit.jupiter.api.BeforeAll)

Aggregations

LoggerTestTool (org.apache.zookeeper.test.LoggerTestTool)11 ByteArrayOutputStream (java.io.ByteArrayOutputStream)9 LineNumberReader (java.io.LineNumberReader)9 StringReader (java.io.StringReader)9 Pattern (java.util.regex.Pattern)9 Test (org.junit.jupiter.api.Test)9 BaseTestMetricsProvider (org.apache.zookeeper.metrics.BaseTestMetricsProvider)3 BeforeAll (org.junit.jupiter.api.BeforeAll)2 ZooKeeper (org.apache.zookeeper.ZooKeeper)1