[jboss-cvs] JBoss Messaging SVN: r6724 - trunk/tests/src/org/jboss/messaging/tests/util.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri May 8 18:10:52 EDT 2009


Author: clebert.suconic at jboss.com
Date: 2009-05-08 18:10:51 -0400 (Fri, 08 May 2009)
New Revision: 6724

Modified:
   trunk/tests/src/org/jboss/messaging/tests/util/JournalExample.java
Log:
just a little tweak

Modified: trunk/tests/src/org/jboss/messaging/tests/util/JournalExample.java
===================================================================
--- trunk/tests/src/org/jboss/messaging/tests/util/JournalExample.java	2009-05-08 22:05:30 UTC (rev 6723)
+++ trunk/tests/src/org/jboss/messaging/tests/util/JournalExample.java	2009-05-08 22:10:51 UTC (rev 6724)
@@ -90,21 +90,21 @@
          
          for (RecordInfo record: committedRecords)
          {
-            System.out.println("Record id = " + record.id + " userType = " + record.userRecordType + " is stored.. keep it on the memory somewhere until you delete it");
+            System.out.println("Record id = " + record.id + " userType = " + record.userRecordType + " with " + record.data.length + " bytes is stored on the journal");
          }
 
          System.out.println("Adding Records:");
          
          for (int i = 0 ; i < 10; i++)
          {
-            journalExample.appendAddRecord(idgenerator.generateID(), (byte)1, new byte[] { 0, 1, 2} );
+            journalExample.appendAddRecord(idgenerator.generateID(), (byte)1, new byte[] { 0, 1, 2, 0, 1, 2, 0, 1, 2, 0, 1, 2, 0, 1, 2, 0, 1, 2, 0, 1, 2} );
          }
          
          long tx = idgenerator.generateID(); // some id generation system
          
          for (int i = 0 ; i < 100; i++)
          {
-            journalExample.appendAddRecordTransactional(tx, idgenerator.generateID(), (byte)2, new byte[] { 0, 1, 2});
+            journalExample.appendAddRecordTransactional(tx, idgenerator.generateID(), (byte)2, new byte[] { 0, 1, 2, 0, 1, 2, 0, 1, 2, 0, 1, 2, 0, 1, 2, 0, 1, 2, 0, 1, 2, 5});
          }
          
          // After this is complete, you're sure the records are there




More information about the jboss-cvs-commits mailing list