Migrate to Junit 5 Jupiter
[lttng-ust-java-tests.git] / lttng-ust-java-tests-log4j2 / src / test / java / org / lttng / ust / agent / integration / filter / Log4j2FilterListenerOrderingIT.java
CommitLineData
eca1a136
MJ
1/*
2 * Copyright (C) 2022, EfficiOS Inc.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License along
15 * with this program; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 */
18
19package org.lttng.ust.agent.integration.filter;
20
7a4f0255
MJ
21import org.junit.jupiter.api.AfterAll;
22import org.junit.jupiter.api.BeforeAll;
eca1a136
MJ
23import org.lttng.tools.ILttngSession.Domain;
24import org.lttng.ust.agent.utils.Log4j2TestContext;
25import org.lttng.ust.agent.utils.Log4j2TestUtils;
26
27/**
28 * Implementation of {@link FilterListenerOrderingITBase} for the log4j API.
29 */
30public class Log4j2FilterListenerOrderingIT extends FilterListenerOrderingITBase {
31
32 private Log4j2TestContext testContext;
33
34 /**
35 * Class setup
36 */
7a4f0255 37 @BeforeAll
eca1a136
MJ
38 public static void log4j2ClassSetup() {
39 Log4j2TestUtils.testClassSetup();
40 }
41
42 /**
43 * Class cleanup
44 */
7a4f0255 45 @AfterAll
eca1a136
MJ
46 public static void log4j2ClassCleanup() {
47 Log4j2TestUtils.testClassCleanup();
48 }
49
50 @Override
51 protected Domain getDomain() {
52 return Domain.LOG4J;
53 }
54
55 @Override
56 protected void registerAgent() {
57 testContext = new Log4j2TestContext("log4j2.Log4j2FilterListenerOrderingIT.xml");
58 testContext.beforeTest();
59 }
60
61 @Override
62 protected void deregisterAgent() {
63 testContext.afterTest();
64 }
65}
This page took 0.025648 seconds and 4 git commands to generate.