package org.lttng.ust.agent.integration.events;
import java.io.IOException;
-import java.util.Map;
-import org.apache.logging.log4j.core.Appender;
import org.apache.logging.log4j.core.Logger;
-import org.junit.After;
-import org.junit.AfterClass;
-import org.junit.Before;
-import org.junit.BeforeClass;
-import org.junit.Test;
+import org.junit.jupiter.api.AfterAll;
+import org.junit.jupiter.api.AfterEach;
+import org.junit.jupiter.api.BeforeAll;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
import org.lttng.tools.ILttngSession.Domain;
import org.lttng.ust.agent.ILttngHandler;
-import org.lttng.ust.agent.log4j2.LttngLogAppender;
import org.lttng.ust.agent.utils.Log4j2TestContext;
import org.lttng.ust.agent.utils.Log4j2TestUtils;
/**
* Class setup
*/
- @BeforeClass
+ @BeforeAll
public static void log4j2ClassSetup() {
Log4j2TestUtils.testClassSetup();
}
/**
* Class cleanup
*/
- @AfterClass
+ @AfterAll
public static void log4j2ClassCleanup() {
Log4j2TestUtils.testClassCleanup();
}
* @throws IOException
*/
@SuppressWarnings("resource")
- @Before
+ @BeforeEach
public void log4j2Setup() throws SecurityException, IOException {
testContext = new Log4j2TestContext("log4j2.Log4j2EnabledEventsIT.xml");
/**
* Test teardown
*/
- @After
+ @AfterEach
public void log4j2Teardown() {
loggerA = null;
loggerB = null;