From 9ea7ab433cc646abe11b540c2d76f5b57cc59cbb Mon Sep 17 00:00:00 2001 From: jglick Date: Thu, 5 Feb 2009 21:38:24 +0000 Subject: [PATCH] Avoid printing a stack trace when the test is in fact passing. git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15044 71c3de6d-444a-0410-be80-ed276b4c234a --- .../java/hudson/util/RobustReflectionConverterTest.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/src/test/java/hudson/util/RobustReflectionConverterTest.java b/core/src/test/java/hudson/util/RobustReflectionConverterTest.java index e28e97a42f..b284d19e56 100644 --- a/core/src/test/java/hudson/util/RobustReflectionConverterTest.java +++ b/core/src/test/java/hudson/util/RobustReflectionConverterTest.java @@ -3,12 +3,18 @@ package hudson.util; import junit.framework.TestCase; import com.thoughtworks.xstream.XStream; import com.thoughtworks.xstream.converters.ConversionException; +import java.util.logging.Level; +import java.util.logging.Logger; /** * @author Kohsuke Kawaguchi */ public class RobustReflectionConverterTest extends TestCase { + static { + Logger.getLogger(RobustReflectionConverter.class.getName()).setLevel(Level.OFF); + } + public void testRobustUnmarshalling() { Point p = read(new XStream2()); assertEquals(p.x,1);