From 38a0e4f6aafdb2de45795bd9abdb2e305f489fe2 Mon Sep 17 00:00:00 2001 From: Thomas Becker Date: Wed, 5 Jun 2013 15:43:41 +0200 Subject: [PATCH] revert test in BufferUtilTest --- .../eclipse/jetty/util/BufferUtilTest.java | 27 ------------------- 1 file changed, 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 9780f2765f7..780eaadda0a 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); - } }