From: David ‘Bombe’ Roden Date: Mon, 21 Oct 2013 20:17:06 +0000 (+0200) Subject: Deactivate the logger for the test. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=2c56866314a87373f232d2d7a7c00eacfde9a0b8;p=Sone.git Deactivate the logger for the test. --- 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());