lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From busc...@apache.org
Subject svn commit: r824012 - /lucene/java/branches/lucene_2_9_back_compat_tests/src/test/org/apache/lucene/util/TestPriorityQueue.java
Date Sun, 11 Oct 2009 03:52:39 GMT
Author: buschmi
Date: Sun Oct 11 03:52:39 2009
New Revision: 824012

URL: http://svn.apache.org/viewvc?rev=824012&view=rev
Log:
LUCENE-1968: Remove deprecated PriorityQueue methods.

Modified:
    lucene/java/branches/lucene_2_9_back_compat_tests/src/test/org/apache/lucene/util/TestPriorityQueue.java

Modified: lucene/java/branches/lucene_2_9_back_compat_tests/src/test/org/apache/lucene/util/TestPriorityQueue.java
URL: http://svn.apache.org/viewvc/lucene/java/branches/lucene_2_9_back_compat_tests/src/test/org/apache/lucene/util/TestPriorityQueue.java?rev=824012&r1=824011&r2=824012&view=diff
==============================================================================
--- lucene/java/branches/lucene_2_9_back_compat_tests/src/test/org/apache/lucene/util/TestPriorityQueue.java
(original)
+++ lucene/java/branches/lucene_2_9_back_compat_tests/src/test/org/apache/lucene/util/TestPriorityQueue.java
Sun Oct 11 03:52:39 2009
@@ -57,7 +57,7 @@
 	{
 	    int next = gen.nextInt();
 	    sum += next;
-	    pq.put(new Integer(next));
+	    pq.add(new Integer(next));
 	}
 
 	//      Date end = new Date();
@@ -86,9 +86,9 @@
     public void testClear()
     {
 	PriorityQueue pq = new IntegerQueue(3);
-	pq.put(new Integer(2));
-	pq.put(new Integer(3));
-	pq.put(new Integer(1));
+	pq.add(new Integer(2));
+	pq.add(new Integer(3));
+	pq.add(new Integer(1));
 	assertEquals(3, pq.size());
 	pq.clear();
 	assertEquals(0, pq.size());
@@ -96,12 +96,12 @@
     
     public void testFixedSize(){
         PriorityQueue pq = new IntegerQueue(3);
-        pq.insert(new Integer(2));
-        pq.insert(new Integer(3));
-        pq.insert(new Integer(1));
-        pq.insert(new Integer(5));
-        pq.insert(new Integer(7));
-        pq.insert(new Integer(1));
+        pq.insertWithOverflow(new Integer(2));
+        pq.insertWithOverflow(new Integer(3));
+        pq.insertWithOverflow(new Integer(1));
+        pq.insertWithOverflow(new Integer(5));
+        pq.insertWithOverflow(new Integer(7));
+        pq.insertWithOverflow(new Integer(1));
         assertEquals(3, pq.size());
         assertEquals(3, ((Integer) pq.top()).intValue());
     }



Mime
View raw message