Add log4j2 agent tests
[lttng-ust-java-tests.git] / lttng-ust-java-tests-common / src / main / java / org / lttng / ust / agent / integration / events / EnabledEventsITBase.java
index c0de521f82168ad58670a2884e3ee5f8776a2c34..7a7ce36183712f394749f95dcf3638106b779e96 100644 (file)
@@ -44,7 +44,7 @@ public abstract class EnabledEventsITBase {
     protected static final String EVENT_NAME_A = "EventA";
     protected static final String EVENT_NAME_B = "EventAB";
     protected static final String EVENT_NAME_C = "EventABC";
-    protected static final String EVENT_NAME_D = "EventABCD";
+    protected static final String EVENT_NAME_D = "EventABCDÉ";
 
     private ILttngSession session;
 
@@ -55,6 +55,8 @@ public abstract class EnabledEventsITBase {
 
     protected abstract Domain getDomain();
 
+    protected abstract boolean closeHandlers();
+
     protected abstract void sendEventsToLoggers();
 
     /**
@@ -77,9 +79,11 @@ public abstract class EnabledEventsITBase {
     public void testTeardown() {
         session.close();
 
-        handlerA.close();
-        handlerB.close();
-        handlerC.close();
+        if (closeHandlers()) {
+            handlerA.close();
+            handlerB.close();
+            handlerC.close();
+        }
 
         handlerA = null;
         handlerB = null;
This page took 0.023433 seconds and 4 git commands to generate.