projects
/
lttng-ust-java-tests.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Clear loggers both before AND after tests
[lttng-ust-java-tests.git]
/
lttng-ust-java-tests-jul
/
src
/
test
/
java
/
org
/
lttng
/
ust
/
agent
/
integration
/
events
/
JulLegacyApiIT.java
diff --git
a/lttng-ust-java-tests-jul/src/test/java/org/lttng/ust/agent/integration/events/JulLegacyApiIT.java
b/lttng-ust-java-tests-jul/src/test/java/org/lttng/ust/agent/integration/events/JulLegacyApiIT.java
index 674ca7985b9bff499d821b563a53c7f169fc4af7..97ba4b694049299795b686e4aecde7b66c7d83d0 100644
(file)
--- a/
lttng-ust-java-tests-jul/src/test/java/org/lttng/ust/agent/integration/events/JulLegacyApiIT.java
+++ b/
lttng-ust-java-tests-jul/src/test/java/org/lttng/ust/agent/integration/events/JulLegacyApiIT.java
@@
-28,6
+28,7
@@
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.logging.Level;
import java.util.Collections;
import java.util.List;
import java.util.logging.Level;
+import java.util.logging.LogManager;
import java.util.logging.Logger;
import org.junit.After;
import java.util.logging.Logger;
import org.junit.After;
@@
-82,6
+83,10
@@
public class JulLegacyApiIT {
*/
@Before
public void setup() {
*/
@Before
public void setup() {
+ /* Clear the JUL logger configuration */
+ LogManager.getLogManager().reset();
+ System.gc();
+
loggerA = Logger.getLogger(EVENT_NAME_A);
agent = LTTngAgent.getLTTngAgent();
loggerB = Logger.getLogger(EVENT_NAME_B);
loggerA = Logger.getLogger(EVENT_NAME_A);
agent = LTTngAgent.getLTTngAgent();
loggerB = Logger.getLogger(EVENT_NAME_B);
This page took
0.022645 seconds
and
4
git commands to generate.