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 the logger configuration before "list" tests
[lttng-ust-java-tests.git]
/
lttng-ust-java-tests-jul
/
src
/
test
/
java
/
org
/
lttng
/
ust
/
agent
/
integration
/
events
/
JulListEventsIT.java
diff --git
a/lttng-ust-java-tests-jul/src/test/java/org/lttng/ust/agent/integration/events/JulListEventsIT.java
b/lttng-ust-java-tests-jul/src/test/java/org/lttng/ust/agent/integration/events/JulListEventsIT.java
index 0c97d37ae86f91d1bfc01f679727370f916805cb..dbd5c334e5bfd15aa14633116b56b941213f5b5a 100644
(file)
--- a/
lttng-ust-java-tests-jul/src/test/java/org/lttng/ust/agent/integration/events/JulListEventsIT.java
+++ b/
lttng-ust-java-tests-jul/src/test/java/org/lttng/ust/agent/integration/events/JulListEventsIT.java
@@
-20,6
+20,7
@@
package org.lttng.ust.agent.integration.events;
import java.io.IOException;
import java.util.logging.Handler;
import java.io.IOException;
import java.util.logging.Handler;
+import java.util.logging.LogManager;
import java.util.logging.Logger;
import org.junit.After;
import java.util.logging.Logger;
import org.junit.After;
@@
-62,6
+63,10
@@
public class JulListEventsIT extends ListEventsITBase {
*/
@Before
public void julSetup() throws SecurityException, IOException {
*/
@Before
public void julSetup() throws SecurityException, IOException {
+ /* Clear the JUL logger configuration */
+ LogManager.getLogManager().reset();
+ System.gc();
+
loggers = new Logger[] {
Logger.getLogger(LOGGER_NAME_1),
Logger.getLogger(LOGGER_NAME_2),
loggers = new Logger[] {
Logger.getLogger(LOGGER_NAME_1),
Logger.getLogger(LOGGER_NAME_2),
This page took
0.023229 seconds
and
4
git commands to generate.