You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ta...@apache.org on 2012/07/05 17:22:18 UTC
svn commit: r1357675 -
/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/store/leveldb/LevelDBConfigTest.java
Author: tabish
Date: Thu Jul 5 15:22:17 2012
New Revision: 1357675
URL: http://svn.apache.org/viewvc?rev=1357675&view=rev
Log:
Fix the test as the recent fixes ensure that for a non-persistent broker config, there is not a persistent DB store.
Modified:
activemq/trunk/activemq-core/src/test/java/org/apache/activemq/store/leveldb/LevelDBConfigTest.java
Modified: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/store/leveldb/LevelDBConfigTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/store/leveldb/LevelDBConfigTest.java?rev=1357675&r1=1357674&r2=1357675&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/store/leveldb/LevelDBConfigTest.java (original)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/store/leveldb/LevelDBConfigTest.java Thu Jul 5 15:22:17 2012
@@ -19,9 +19,9 @@ package org.apache.activemq.store.leveld
import java.io.File;
import junit.framework.TestCase;
+
import org.apache.activemq.broker.BrokerService;
import org.apache.activemq.command.ActiveMQTopic;
-import org.apache.activemq.store.memory.MemoryPersistenceAdapter;
import org.apache.activemq.usage.SystemUsage;
import org.apache.activemq.xbean.BrokerFactoryBean;
import org.slf4j.Logger;
@@ -30,7 +30,7 @@ import org.springframework.core.io.Class
import org.springframework.core.io.Resource;
/**
- *
+ *
*/
public class LevelDBConfigTest extends TestCase {
@@ -62,7 +62,7 @@ public class LevelDBConfigTest extends T
assertEquals("Broker Config Error (populateJMSXUserID)", false, broker.isPopulateJMSXUserID());
assertEquals("Broker Config Error (useLoggingForShutdownErrors)", true, broker.isUseLoggingForShutdownErrors());
assertEquals("Broker Config Error (useJmx)", true, broker.isUseJmx());
- assertEquals("Broker Config Error (persistent)", false, broker.isPersistent());
+ assertEquals("Broker Config Error (persistent)", true, broker.isPersistent());
assertEquals("Broker Config Error (useShutdownHook)", false, broker.isUseShutdownHook());
assertEquals("Broker Config Error (deleteAllMessagesOnStartup)", true, broker.isDeleteAllMessagesOnStartup());
LOG.info("Success");
@@ -85,7 +85,7 @@ public class LevelDBConfigTest extends T
assertNotNull(systemUsage.getStoreUsage().getStore());
assertTrue(systemUsage.getStoreUsage().getStore() instanceof LevelDBPersistenceAdapter);
-
+
LOG.info("Success");
} finally {