[hornetq-commits] JBoss hornetq SVN: r7880 - trunk/tests/src/org/hornetq/tests/unit/core/persistence/impl.

do-not-reply at jboss.org do-not-reply at jboss.org
Fri Aug 21 18:02:21 EDT 2009


Author: clebert.suconic at jboss.com
Date: 2009-08-21 18:02:21 -0400 (Fri, 21 Aug 2009)
New Revision: 7880

Modified:
   trunk/tests/src/org/hornetq/tests/unit/core/persistence/impl/BatchIDGeneratorUnitTest.java
Log:
small tweak on test

Modified: trunk/tests/src/org/hornetq/tests/unit/core/persistence/impl/BatchIDGeneratorUnitTest.java
===================================================================
--- trunk/tests/src/org/hornetq/tests/unit/core/persistence/impl/BatchIDGeneratorUnitTest.java	2009-08-21 21:56:02 UTC (rev 7879)
+++ trunk/tests/src/org/hornetq/tests/unit/core/persistence/impl/BatchIDGeneratorUnitTest.java	2009-08-21 22:02:21 UTC (rev 7880)
@@ -110,8 +110,21 @@
          
          lastId = id;
       }
+
       
-      System.out.println("LastID = " + lastId);
+      batch.close();
+      journal.stop();
+      batch = new BatchingIDGenerator(0, 1000, journal);
+      loadIDs(journal, batch);
+      
+      lastId = batch.getCurrentID();
+
+      journal.stop();
+      batch = new BatchingIDGenerator(0, 1000, journal);
+      loadIDs(journal, batch);
+      
+      assertEquals("No Ids were generated, so the currentID was supposed to stay the same", lastId, batch.getCurrentID());
+      
  
    }
 



More information about the hornetq-commits mailing list