[jboss-cvs] JBoss Messaging SVN: r4721 - trunk/tests/src/org/jboss/messaging/tests/unit/core/journal/impl.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Jul 24 08:37:05 EDT 2008


Author: clebert.suconic at jboss.com
Date: 2008-07-24 08:37:05 -0400 (Thu, 24 Jul 2008)
New Revision: 4721

Modified:
   trunk/tests/src/org/jboss/messaging/tests/unit/core/journal/impl/AlignedJournalImplTest.java
Log:
optimising test (don't need that much memory) what will speed up the test a little bit

Modified: trunk/tests/src/org/jboss/messaging/tests/unit/core/journal/impl/AlignedJournalImplTest.java
===================================================================
--- trunk/tests/src/org/jboss/messaging/tests/unit/core/journal/impl/AlignedJournalImplTest.java	2008-07-24 12:28:28 UTC (rev 4720)
+++ trunk/tests/src/org/jboss/messaging/tests/unit/core/journal/impl/AlignedJournalImplTest.java	2008-07-24 12:37:05 UTC (rev 4721)
@@ -25,7 +25,6 @@
 
 import java.nio.ByteBuffer;
 import java.util.ArrayList;
-import java.util.List;
 
 import org.jboss.messaging.core.journal.EncodingSupport;
 import org.jboss.messaging.core.journal.PreparedTransactionInfo;
@@ -158,9 +157,9 @@
    public void testAppendAndUpdateRecords() throws Exception
    {
       
-      final int JOURNAL_SIZE = 10000;
+      final int JOURNAL_SIZE = 1060;
       
-      setupJournal(JOURNAL_SIZE, 100);
+      setupJournal(JOURNAL_SIZE, 10);
       
       assertEquals(0, records.size());
       assertEquals(0, transactions.size());
@@ -570,7 +569,7 @@
    
    public void testReloadInvalidCheckSizeOnTransaction() throws Exception
    {
-      final int JOURNAL_SIZE = 20000;
+      final int JOURNAL_SIZE = 2000;
       
       setupJournal(JOURNAL_SIZE, 100);
       
@@ -635,7 +634,7 @@
 
    public void testPartiallyBrokenFile() throws Exception
    {
-      final int JOURNAL_SIZE = 20000;
+      final int JOURNAL_SIZE = 2000;
       
       setupJournal(JOURNAL_SIZE, 100);
       
@@ -704,7 +703,7 @@
 
    public void testReduceFreeFiles() throws Exception
    {
-      final int JOURNAL_SIZE = 20000;
+      final int JOURNAL_SIZE = 2000;
       
       setupJournal(JOURNAL_SIZE, 100, 10);
       
@@ -745,7 +744,7 @@
    
    public void testReloadIncompleteTransaction() throws Exception
    {
-      final int JOURNAL_SIZE = 20000;
+      final int JOURNAL_SIZE = 2000;
       
       setupJournal(JOURNAL_SIZE, 100);
       
@@ -808,41 +807,6 @@
       
    }
    
-   public void testAsynchronousCommit() throws Exception
-   {
-//      final int JOURNAL_SIZE = 20000;
-//      
-//      setupJournal(JOURNAL_SIZE, 100, 5);
-//      
-//      assertEquals(2, factory.listFiles("tt").size());
-//      
-//      assertEquals(0, records.size());
-//      assertEquals(0, transactions.size());
-//      
-//      for (int i = 0; i < 10 ; i++)
-//      {
-//         journalImpl.appendAddRecordTransactional(1l, (long)i, (byte)0, new SimpleEncoding(1, (byte)15));
-//         journalImpl.forceMoveNextFile();
-//      }
-//      
-//      
-//      for (int i = 10; i < 20 ; i++)
-//      {
-//         journalImpl.appendAddRecordTransactional(1l, (long)i, (byte)0, new SimpleEncoding(1, (byte)15));
-//         journalImpl.forceMoveNextFile();
-//      }
-//      
-//      journalImpl.forceMoveNextFile();
-//      
-//      journalImpl.appendCommitRecord(1l);
-//      
-   }
-   
-   public void testAsynchronousRollback() throws Exception
-   {
-      // We should miss one record (hole) on the transaction
-   }
-   
    public void testPrepareAloneOnSeparatedFile() throws Exception
    {
       final int JOURNAL_SIZE = 20000;




More information about the jboss-cvs-commits mailing list