Author: clebert.suconic(a)jboss.com
Date: 2009-11-27 20:26:06 -0500 (Fri, 27 Nov 2009)
New Revision: 8434
Modified:
trunk/tests/src/org/hornetq/tests/unit/core/journal/impl/JournalImplTestUnit.java
Log:
Adding a new test on journal for debug purposes
Modified:
trunk/tests/src/org/hornetq/tests/unit/core/journal/impl/JournalImplTestUnit.java
===================================================================
---
trunk/tests/src/org/hornetq/tests/unit/core/journal/impl/JournalImplTestUnit.java 2009-11-27
21:20:56 UTC (rev 8433)
+++
trunk/tests/src/org/hornetq/tests/unit/core/journal/impl/JournalImplTestUnit.java 2009-11-28
01:26:06 UTC (rev 8434)
@@ -3106,7 +3106,29 @@
assertEquals(0, journal.getDataFilesCount());
}
+
+
+ public void testAddTexThenUpdate() throws Exception
+ {
+ setup(2, 60 * 1024, true);
+ createJournal();
+ startJournal();
+ load();
+
+
+ addTx(1, 1);
+ updateTx(1, 1);
+ commit(1);
+ update(1);
+
+ stopJournal();
+ createJournal();
+ startJournal();
+ loadAndCheck();
+
+ }
+
protected abstract int getAlignment();
}