Skip to content

Commit

Permalink
HSEARCH-771 - ProgrammaticMappingTest should pass when executing test…
Browse files Browse the repository at this point in the history
…s in any order
  • Loading branch information
Sanne committed Aug 1, 2011
1 parent 077c272 commit bad4e6f
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -81,7 +81,7 @@ public void testMapping() throws Exception{
org.apache.lucene.search.Query luceneQuery = parser.parse( "" + address.getAddressId() );
System.out.println(luceneQuery.toString( ));
FullTextQuery query = s.createFullTextQuery( luceneQuery );
assertEquals( "documenId does not work properly", 1, query.getResultSize() );
assertEquals( "documentId does not work properly", 1, query.getResultSize() );

luceneQuery = parser.parse( "street1:peachtree" );
query = s.createFullTextQuery( luceneQuery ).setProjection( "idx_street2", FullTextQuery.THIS );
Expand Down Expand Up @@ -110,6 +110,7 @@ public void testNumeric() throws Exception {
FullTextQuery query = s.createFullTextQuery(q, Item.class);
assertEquals("Numeric field via programmatic config",1,query.getResultSize());

s.delete(query.list().get(0));
tx.commit();
s.close();

Expand Down

0 comments on commit bad4e6f

Please sign in to comment.