From 2c56866314a87373f232d2d7a7c00eacfde9a0b8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Mon, 21 Oct 2013 22:17:06 +0200 Subject: [PATCH] Deactivate the logger for the test. --- src/test/java/net/pterodactylus/sone/core/SoneParserTest.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/test/java/net/pterodactylus/sone/core/SoneParserTest.java b/src/test/java/net/pterodactylus/sone/core/SoneParserTest.java index 3e323ec..ad56bf8 100644 --- a/src/test/java/net/pterodactylus/sone/core/SoneParserTest.java +++ b/src/test/java/net/pterodactylus/sone/core/SoneParserTest.java @@ -4,6 +4,7 @@ import static com.google.common.base.Optional.absent; import static com.google.common.base.Optional.fromNullable; import static com.google.common.base.Optional.of; import static java.lang.String.format; +import static java.util.logging.Level.OFF; import static org.hamcrest.CoreMatchers.is; import static org.hamcrest.CoreMatchers.notNullValue; import static org.hamcrest.MatcherAssert.assertThat; @@ -14,6 +15,7 @@ import static org.mockito.Mockito.when; import java.io.ByteArrayInputStream; import java.io.InputStream; import java.io.UnsupportedEncodingException; +import java.util.logging.Logger; import net.pterodactylus.sone.data.Client; import net.pterodactylus.sone.data.Image; @@ -33,6 +35,10 @@ import org.junit.Test; */ public class SoneParserTest { + static { + Logger.getLogger("").setLevel(OFF); + } + private final Core core = mock(Core.class); private final Database database = new MemoryDatabase(null); private final Sone originalSone = database.newSoneBuilder().by("test").using(new Client("TestClient", "1.0")).build(Optional.absent()); -- 2.7.4