aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Becker2013-06-05 09:43:41 (EDT)
committerThomas Becker2013-06-06 02:06:52 (EDT)
commit38a0e4f6aafdb2de45795bd9abdb2e305f489fe2 (patch)
tree7237f8301b7720e13ae151f39abcd9f2422fe141
parent100e8cbaef06a219f704ac3025274707bfe997b7 (diff)
downloadorg.eclipse.jetty.project-38a0e4f6aafdb2de45795bd9abdb2e305f489fe2.zip
org.eclipse.jetty.project-38a0e4f6aafdb2de45795bd9abdb2e305f489fe2.tar.gz
org.eclipse.jetty.project-38a0e4f6aafdb2de45795bd9abdb2e305f489fe2.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);
- }
}