activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r1407523 - /activemq/trunk/activemq-core/src/test/java/org/apache/activemq/TestSupport.java
Date Fri, 09 Nov 2012 16:25:09 GMT
Author: chirino
Date: Fri Nov  9 16:25:08 2012
New Revision: 1407523

URL: http://svn.apache.org/viewvc?rev=1407523&view=rev
Log:
Support being able to test against the LevelDB store too.

Modified:
    activemq/trunk/activemq-core/src/test/java/org/apache/activemq/TestSupport.java

Modified: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/TestSupport.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/TestSupport.java?rev=1407523&r1=1407522&r2=1407523&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/TestSupport.java (original)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/TestSupport.java Fri Nov
 9 16:25:08 2012
@@ -40,6 +40,7 @@ import org.apache.activemq.store.Persist
 import org.apache.activemq.store.amq.AMQPersistenceAdapter;
 import org.apache.activemq.store.jdbc.JDBCPersistenceAdapter;
 import org.apache.activemq.store.kahadb.KahaDBPersistenceAdapter;
+import org.apache.activemq.store.leveldb.LevelDBPersistenceAdapter;
 import org.apache.activemq.store.memory.MemoryPersistenceAdapter;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
@@ -174,7 +175,7 @@ public abstract class TestSupport extend
                         regionBroker.getTopicRegion().getDestinationMap();
     }
 
-    public static enum PersistenceAdapterChoice {KahaDB, AMQ, JDBC, MEM };
+    public static enum PersistenceAdapterChoice {LevelDB, KahaDB, AMQ, JDBC, MEM };
 
     public PersistenceAdapter setDefaultPersistenceAdapter(BrokerService broker) throws IOException
{
         return setPersistenceAdapter(broker, defaultPersistenceAdapter);
@@ -192,6 +193,9 @@ public abstract class TestSupport extend
         case KahaDB:
             adapter = new KahaDBPersistenceAdapter();
             break;
+        case LevelDB:
+            adapter = new LevelDBPersistenceAdapter();
+            break;
         case MEM:
             adapter = new MemoryPersistenceAdapter();
             break;



Mime
View raw message