Fixup failing LevelDB XA test.

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1407018 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Hiram R. Chirino 2012-11-08 11:25:49 +00:00
parent 7c9fec6e25
commit 1a2cbe7641
2 changed files with 9 additions and 7 deletions

View File

@ -1,5 +1,6 @@
package org.apache.activemq.leveldb;
import junit.framework.Test;
import org.apache.activemq.broker.BrokerService;
import org.apache.activemq.broker.BrokerTest;
import org.apache.activemq.store.PersistenceAdapter;
@ -12,13 +13,13 @@ import java.io.IOException;
*/
public class LevelDBStoreBrokerTest extends BrokerTest {
// def suite: Test = {
// return new TestSuite(classOf[LevelDBStoreBrokerTest])
// }
//
// def main(args: Array[String]): Unit = {
// junit.textui.TestRunner.run(suite)
// }
public static Test suite() {
return suite(LevelDBStoreBrokerTest.class);
}
public static void main(String[] args) {
junit.textui.TestRunner.run(suite());
}
@Override
protected BrokerService createBroker() throws Exception {

View File

@ -311,6 +311,7 @@ class LevelDBStore extends ServiceSupport with BrokerServiceAware with Persisten
if( prepared ) {
uow.dequeue(xacontainer_id, message.getMessageId)
}
message.setMessageId(message.getMessageId.copy())
store.doAdd(uow, message, delay)
}