[infinispan-commits] Infinispan SVN: r2179 - branches/4.1.x/demos/lucene-directory-demo/src/test/java/org/infinispan/lucenedemo.
infinispan-commits at lists.jboss.org
infinispan-commits at lists.jboss.org
Mon Aug 9 13:49:00 EDT 2010
Author: sannegrinovero
Date: 2010-08-09 13:49:00 -0400 (Mon, 09 Aug 2010)
New Revision: 2179
Modified:
branches/4.1.x/demos/lucene-directory-demo/src/test/java/org/infinispan/lucenedemo/CacheConfigurationTest.java
Log:
[ISPN-585] (cleanup the Lucene Directory implementation) branch 4.1 - fix the demo
Modified: branches/4.1.x/demos/lucene-directory-demo/src/test/java/org/infinispan/lucenedemo/CacheConfigurationTest.java
===================================================================
--- branches/4.1.x/demos/lucene-directory-demo/src/test/java/org/infinispan/lucenedemo/CacheConfigurationTest.java 2010-08-09 17:48:36 UTC (rev 2178)
+++ branches/4.1.x/demos/lucene-directory-demo/src/test/java/org/infinispan/lucenedemo/CacheConfigurationTest.java 2010-08-09 17:49:00 UTC (rev 2179)
@@ -27,7 +27,6 @@
import org.apache.lucene.queryParser.ParseException;
import org.apache.lucene.search.Query;
import org.infinispan.Cache;
-import org.infinispan.lucene.CacheKey;
import org.infinispan.lucene.InfinispanDirectory;
import org.infinispan.manager.DefaultCacheManager;
import org.testng.annotations.AfterClass;
@@ -52,12 +51,12 @@
public void init() throws IOException {
cacheManager1 = new DefaultCacheManager("config-samples/lucene-demo-cache-config.xml");
cacheManager1.start();
- Cache<CacheKey, Object> cache1 = cacheManager1.getCache();
+ Cache cache1 = cacheManager1.getCache();
cache1.clear();
directoryNodeOne = new InfinispanDirectory(cache1);
cacheManager2 = new DefaultCacheManager("config-samples/lucene-demo-cache-config.xml");
cacheManager2.start();
- Cache<CacheKey, Object> cache2 = cacheManager2.getCache();
+ Cache cache2 = cacheManager2.getCache();
cache2.clear();
directoryNodeTwo = new InfinispanDirectory(cache2);
}
More information about the infinispan-commits
mailing list