Author: navssurtani
Date: 2008-08-21 05:16:33 -0400 (Thu, 21 Aug 2008)
New Revision: 6585
Modified:
searchable/trunk/pom.xml
searchable/trunk/src/test/java/org/jboss/cache/search/blackbox/LocalCacheTest.java
Log:
Edited LocalCacheTest and pom.xml -
Version changed to 1.1.0.Beta1 and JBC deps changed to CR7
Modified: searchable/trunk/pom.xml
===================================================================
--- searchable/trunk/pom.xml 2008-08-20 12:06:04 UTC (rev 6584)
+++ searchable/trunk/pom.xml 2008-08-21 09:16:33 UTC (rev 6585)
@@ -4,7 +4,7 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<properties>
-
<jbosscache-searchable-version>0.1-Beta1</jbosscache-searchable-version>
+
<jbosscache-searchable-version>1.0.0.Beta1</jbosscache-searchable-version>
<!-- By default only generate Javadocs when we install the module. -->
<javadocPhase>install</javadocPhase>
</properties>
@@ -25,7 +25,7 @@
<dependency>
<groupId>org.jboss.cache</groupId>
<artifactId>jbosscache-core</artifactId>
- <version>2.2.0.CR5</version>
+ <version>2.2.0.CR7</version>
</dependency>
<dependency>
Modified:
searchable/trunk/src/test/java/org/jboss/cache/search/blackbox/LocalCacheTest.java
===================================================================
---
searchable/trunk/src/test/java/org/jboss/cache/search/blackbox/LocalCacheTest.java 2008-08-20
12:06:04 UTC (rev 6584)
+++
searchable/trunk/src/test/java/org/jboss/cache/search/blackbox/LocalCacheTest.java 2008-08-21
09:16:33 UTC (rev 6585)
@@ -3,6 +3,7 @@
import org.apache.lucene.analysis.standard.StandardAnalyzer;
import org.apache.lucene.queryParser.ParseException;
import org.apache.lucene.queryParser.QueryParser;
+import org.apache.lucene.queryParser.MultiFieldQueryParser;
import org.apache.lucene.search.*;
import org.apache.lucene.index.Term;
import org.jboss.cache.Cache;
@@ -35,6 +36,7 @@
Person person3;
Person person4;
Person person5;
+ Person person6;
QueryParser queryParser;
Query luceneQuery;
CacheQuery cacheQuery;
@@ -76,7 +78,7 @@
public void tearDown()
{
if (searchableCache != null) searchableCache.stop();
- IndexCleanUp.cleanUpIndexes();
+ IndexCleanUp.cleanUpIndexes();
}
public void testSimple() throws ParseException
@@ -202,7 +204,7 @@
person2.setAge(35);
person3.setAge(12);
- Sort sort = new Sort ("age");
+ Sort sort = new Sort("age");
queryParser = new QueryParser("name", new StandardAnalyzer());
@@ -237,8 +239,8 @@
found = cacheQuery.list();
- assert found.size() ==1;
-
+ assert found.size() == 1;
+
}
}