X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=src%2Ftest%2Fjava%2Forg%2Flttng%2Fust%2Fagent%2Fintegration%2Flog4j%2FLog4jEnabledEventsTest.java;h=35a17abc95becfb8fc05f5a3c3b2e9f5dccc682f;hb=8a0613fae3d438ff096d22cf5762bc6ed083e16b;hp=a96e1d51c6b3a30da94d7a0538be84efa879fabb;hpb=2b408e85806bd695f6036371701dcb8691ab3c32;p=lttng-ust-java-tests.git diff --git a/src/test/java/org/lttng/ust/agent/integration/log4j/Log4jEnabledEventsTest.java b/src/test/java/org/lttng/ust/agent/integration/log4j/Log4jEnabledEventsTest.java index a96e1d5..35a17ab 100644 --- a/src/test/java/org/lttng/ust/agent/integration/log4j/Log4jEnabledEventsTest.java +++ b/src/test/java/org/lttng/ust/agent/integration/log4j/Log4jEnabledEventsTest.java @@ -35,6 +35,9 @@ import org.lttng.ust.agent.utils.LttngSession; import org.lttng.ust.agent.utils.LttngSession.Domain; import org.lttng.ust.agent.utils.MiscTestUtils; +/** + * Enabled events test for the LTTng-UST Log4j log handler. + */ public class Log4jEnabledEventsTest extends EnabledEventsTestBase { private static final Domain DOMAIN = Domain.LOG4J; @@ -44,6 +47,9 @@ public class Log4jEnabledEventsTest extends EnabledEventsTestBase { private Logger loggerC; private Logger loggerD; + /** + * Class setup + */ @BeforeClass public static void log4jClassSetup() { /* Skip tests if we can't find the JNI library or lttng-tools */ @@ -53,11 +59,20 @@ public class Log4jEnabledEventsTest extends EnabledEventsTestBase { LttngSession.destroyAllSessions(); } + /** + * Class teardown + */ @AfterClass public static void log4jClassCleanup() { LttngSession.deleteAllTracee(); } + /** + * Test setup + * + * @throws SecurityException + * @throws IOException + */ @Before public void log4jSetup() throws SecurityException, IOException { loggerA = Logger.getLogger(EVENT_NAME_A); @@ -79,6 +94,9 @@ public class Log4jEnabledEventsTest extends EnabledEventsTestBase { loggerC.addAppender((Appender) handlerC); } + /** + * Test teardown + */ @After public void log4jTeardown() { loggerA.removeAppender((Appender) handlerA);