activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r1357675 - /activemq/trunk/activemq-core/src/test/java/org/apache/activemq/store/leveldb/LevelDBConfigTest.java
Date Thu, 05 Jul 2012 15:22:18 GMT
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 {



Mime
View raw message