aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Becker2012-12-10 05:01:13 (EST)
committerThomas Becker2012-12-12 12:48:49 (EST)
commit656794047121dc5406ae6637d6c590d30a054db5 (patch)
tree7d18f216aa26867529be2b572304e0bb3cf3c112
parent0ff769e633d5d7c07374897ca76272a7d09872b0 (diff)
downloadorg.eclipse.jetty.project-656794047121dc5406ae6637d6c590d30a054db5.zip
org.eclipse.jetty.project-656794047121dc5406ae6637d6c590d30a054db5.tar.gz
org.eclipse.jetty.project-656794047121dc5406ae6637d6c590d30a054db5.tar.bz2
HttpTransportOverSPDYTest hide stacktrace
-rw-r--r--jetty-spdy/spdy-http-server/src/test/java/org/eclipse/jetty/spdy/server/http/HttpTransportOverSPDYTest.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/jetty-spdy/spdy-http-server/src/test/java/org/eclipse/jetty/spdy/server/http/HttpTransportOverSPDYTest.java b/jetty-spdy/spdy-http-server/src/test/java/org/eclipse/jetty/spdy/server/http/HttpTransportOverSPDYTest.java
index 046f943..c25e73a 100644
--- a/jetty-spdy/spdy-http-server/src/test/java/org/eclipse/jetty/spdy/server/http/HttpTransportOverSPDYTest.java
+++ b/jetty-spdy/spdy-http-server/src/test/java/org/eclipse/jetty/spdy/server/http/HttpTransportOverSPDYTest.java
@@ -37,6 +37,8 @@ import org.eclipse.jetty.spdy.api.Stream;
import org.eclipse.jetty.util.BufferUtil;
import org.eclipse.jetty.util.Callback;
import org.eclipse.jetty.util.Fields;
+import org.eclipse.jetty.util.log.Log;
+import org.eclipse.jetty.util.log.StdErrLog;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
@@ -240,6 +242,7 @@ public class HttpTransportOverSPDYTest
@Test
public void testVerifyThatAStreamIsNotCommittedTwice() throws IOException
{
+ ((StdErrLog)Log.getLogger(HttpTransportOverSPDY.class)).setHideStacks(true);
ByteBuffer content = createRandomByteBuffer();
boolean lastContent = false;
@@ -252,6 +255,8 @@ public class HttpTransportOverSPDYTest
verify(stream, times(0)).data(any(DataInfo.class));
verify(stream, times(1)).data(any(DataInfo.class), anyLong(), any(TimeUnit.class), any(Callback.class));
+
+ ((StdErrLog)Log.getLogger(HttpTransportOverSPDY.class)).setHideStacks(false);
}
private ByteBuffer createRandomByteBuffer()