maven-surefire-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From krosenv...@apache.org
Subject svn commit: r1097317 - /maven/surefire/trunk/surefire-api/src/test/java/org/apache/maven/surefire/util/internal/TwoThreadBlockingQueueTest.java
Date Thu, 28 Apr 2011 04:38:52 GMT
Author: krosenvold
Date: Thu Apr 28 04:38:52 2011
New Revision: 1097317

URL: http://svn.apache.org/viewvc?rev=1097317&view=rev
Log:
o Removed java 1.6 dependency from unit test

Modified:
    maven/surefire/trunk/surefire-api/src/test/java/org/apache/maven/surefire/util/internal/TwoThreadBlockingQueueTest.java

Modified: maven/surefire/trunk/surefire-api/src/test/java/org/apache/maven/surefire/util/internal/TwoThreadBlockingQueueTest.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-api/src/test/java/org/apache/maven/surefire/util/internal/TwoThreadBlockingQueueTest.java?rev=1097317&r1=1097316&r2=1097317&view=diff
==============================================================================
--- maven/surefire/trunk/surefire-api/src/test/java/org/apache/maven/surefire/util/internal/TwoThreadBlockingQueueTest.java
(original)
+++ maven/surefire/trunk/surefire-api/src/test/java/org/apache/maven/surefire/util/internal/TwoThreadBlockingQueueTest.java
Thu Apr 28 04:38:52 2011
@@ -23,7 +23,6 @@ import java.util.ArrayList;
 import java.util.LinkedList;
 import java.util.concurrent.Callable;
 import java.util.concurrent.FutureTask;
-import java.util.concurrent.LinkedBlockingDeque;
 import java.util.concurrent.LinkedBlockingQueue;
 
 import junit.framework.TestCase;
@@ -128,23 +127,6 @@ public class TwoThreadBlockingQueueTest
         System.gc();
     }
 
-    public void testLDBQPut()
-        throws Exception
-    {
-        LinkedBlockingDeque twoThreadBlockingQueue = new LinkedBlockingDeque();
-
-        String[] items = generate( num );
-        long start = System.currentTimeMillis();
-        for ( int i = 0; i < num; i++ )
-        {
-            twoThreadBlockingQueue.put( items[i] );
-        }
-        long elapsed = System.currentTimeMillis() - start;
-        //System.out.println( "LinkedBlockingDeque insert " + num + " elements in  = " +
elapsed );
-
-        System.gc();
-    }
-
     public void testArrayList()
         throws Exception
     {



Mime
View raw message