aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Becker2013-06-05 09:43:41 (EDT)
committerJoakim Erdfelt2013-06-17 12:19:02 (EDT)
commit62c517ee8f372a6949bc58e571a3772849a2971e (patch)
treed47bf30b003e515f9455c47ed631095142f32161
parenta23798321f08dc0485cad0c3908f0352216d052f (diff)
downloadorg.eclipse.jetty.project-62c517ee8f372a6949bc58e571a3772849a2971e.zip
org.eclipse.jetty.project-62c517ee8f372a6949bc58e571a3772849a2971e.tar.gz
org.eclipse.jetty.project-62c517ee8f372a6949bc58e571a3772849a2971e.tar.bz2
revert test in BufferUtilTest
-rw-r--r--jetty-util/src/test/java/org/eclipse/jetty/util/BufferUtilTest.java27
1 files changed, 0 insertions, 27 deletions
diff --git a/jetty-util/src/test/java/org/eclipse/jetty/util/BufferUtilTest.java b/jetty-util/src/test/java/org/eclipse/jetty/util/BufferUtilTest.java
index 9780f27..780eaad 100644
--- a/jetty-util/src/test/java/org/eclipse/jetty/util/BufferUtilTest.java
+++ b/jetty-util/src/test/java/org/eclipse/jetty/util/BufferUtilTest.java
@@ -19,14 +19,10 @@
package org.eclipse.jetty.util;
-import java.io.ByteArrayOutputStream;
-import java.io.IOException;
import java.nio.BufferOverflowException;
import java.nio.ByteBuffer;
import java.util.Arrays;
-import org.eclipse.jetty.util.log.Log;
-import org.eclipse.jetty.util.log.Logger;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
@@ -230,27 +226,4 @@ public class BufferUtilTest
Assert.assertEquals("Count of bytes",length,count);
}
-
- private static final Logger LOG = Log.getLogger(BufferUtilTest.class);
- @Ignore
- @Test
- public void testWriteTo() throws IOException
- {
- ByteArrayOutputStream out = new ByteArrayOutputStream();
- int capacity = 1024 * 1024;
- byte[] bytes = new byte[capacity];
- Arrays.fill(bytes, (byte)'x');
- ByteBuffer buffer = BufferUtil.allocate(1024);
- BufferUtil.append(buffer, bytes, 0, capacity);
- long start = System.nanoTime();
- for (int i = 0; i < 30; i++)
- {
- long startRun = System.nanoTime();
- BufferUtil.writeTo(buffer, out);
- long elapsedRun = System.nanoTime() - startRun;
- LOG.warn("run elapsed={}ms", elapsedRun / 1000);
- }
- long elapsed = System.nanoTime() - start;
- LOG.warn("elapsed={}ms", elapsed / 1000);
- }
}