[jboss-svn-commits] JBL Code SVN: r6874 - labs/jbossrules/branches/3.0.x/drools-core/src/test/java/org/drools/util
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Tue Oct 17 19:50:31 EDT 2006
Author: pombredanne
Date: 2006-10-17 19:50:30 -0400 (Tue, 17 Oct 2006)
New Revision: 6874
Modified:
labs/jbossrules/branches/3.0.x/drools-core/src/test/java/org/drools/util/BinaryHeapPriorityQueueTest.java
Log:
JBRULES-517: removed unused xxxtestBasic method and import on commons collections. This can no longuer work now that Jung dependencies are removed.
Modified: labs/jbossrules/branches/3.0.x/drools-core/src/test/java/org/drools/util/BinaryHeapPriorityQueueTest.java
===================================================================
--- labs/jbossrules/branches/3.0.x/drools-core/src/test/java/org/drools/util/BinaryHeapPriorityQueueTest.java 2006-10-17 23:44:44 UTC (rev 6873)
+++ labs/jbossrules/branches/3.0.x/drools-core/src/test/java/org/drools/util/BinaryHeapPriorityQueueTest.java 2006-10-17 23:50:30 UTC (rev 6874)
@@ -2,13 +2,13 @@
/*
* Copyright 2005 JBoss Inc
- *
+ *
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -23,7 +23,6 @@
import junit.framework.TestCase;
-import org.apache.commons.collections.BinaryHeap;
public class BinaryHeapPriorityQueueTest extends TestCase {
public void testOptimised() {
@@ -61,37 +60,4 @@
System.out.println( "elapsedDequeue = " + elapsedDequeue );
}
- public void xxxtestBasic() {
- final Random random = new Random();
- final List items = new LinkedList();
-
- final BinaryHeap queue = new BinaryHeap();
-
- for ( int i = 0; i < 100000; ++i ) {
- items.add( new LongQueueable( random.nextLong() ) );
- }
-
- final long startEnqueue = System.currentTimeMillis();
-
- for ( final Iterator i = items.iterator(); i.hasNext(); ) {
- queue.add( i.next() );
- }
-
- final long elapsedEnqueue = System.currentTimeMillis() - startEnqueue;
-
- final long startDequeue = System.currentTimeMillis();
-
- for ( final Iterator i = items.iterator(); i.hasNext(); ) {
- queue.remove( i.next() );
- }
-
- // while (!queue.isEmpty()) {
- // queue.pop();
- // }
-
- final long elapsedDequeue = System.currentTimeMillis() - startDequeue;
-
- System.out.println( "elapsedEnqueue = " + elapsedEnqueue );
- System.out.println( "elapsedDequeue = " + elapsedDequeue );
- }
}
\ No newline at end of file
More information about the jboss-svn-commits
mailing list