activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rajdav...@apache.org
Subject svn commit: r901928 - /activemq/trunk/activemq-core/src/test/java/org/apache/activemq/store/kahadb/plist/PListTest.java
Date Thu, 21 Jan 2010 23:44:30 GMT
Author: rajdavies
Date: Thu Jan 21 23:44:29 2010
New Revision: 901928

URL: http://svn.apache.org/viewvc?rev=901928&view=rev
Log:
Fixed failing test

Modified:
    activemq/trunk/activemq-core/src/test/java/org/apache/activemq/store/kahadb/plist/PListTest.java

Modified: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/store/kahadb/plist/PListTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/store/kahadb/plist/PListTest.java?rev=901928&r1=901927&r2=901928&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/store/kahadb/plist/PListTest.java
(original)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/store/kahadb/plist/PListTest.java
Thu Jan 21 23:44:29 2010
@@ -34,28 +34,7 @@
     private PList plist;
     
 
-    @Test
-    public void testIterator() throws Exception {
-        final int COUNT = 10;
-        Map<String, ByteSequence> map = new LinkedHashMap<String, ByteSequence>();
-        for (int i = 0; i < COUNT; i++) {
-            String test = new String("test" + i);
-            ByteSequence bs = new ByteSequence(test.getBytes());
-            map.put(test, bs);
-            plist.addLast(test, bs);
-        }
-        assertEquals(plist.size(), COUNT);
-        int number = 0;
-        PListEntry entry = plist.getFirst();
-        while (entry != null) {
-            entry = plist.getNext(entry);
-            number++;
-            if (entry != null) {
-            plist.remove(entry.copy());
-            }
-        }
-        assertEquals(COUNT, number);
-    }
+   
 
     @Test
     public void testAddLast() throws Exception {



Mime
View raw message