From hibernate-commits at lists.jboss.org Mon Aug 11 04:59:29 2008 Content-Type: multipart/mixed; boundary="===============4438983212305032032==" MIME-Version: 1.0 From: hibernate-commits at lists.jboss.org To: hibernate-commits at lists.jboss.org Subject: [hibernate-commits] Hibernate SVN: r15024 - search/trunk/src/test/org/hibernate/search/test/id/providedId. Date: Mon, 11 Aug 2008 04:59:29 -0400 Message-ID: --===============4438983212305032032== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: hardy.ferentschik Date: 2008-08-11 04:59:29 -0400 (Mon, 11 Aug 2008) New Revision: 15024 Removed: search/trunk/src/test/org/hibernate/search/test/id/providedId/TestProvid= edId.java Log: Deleted misnamed test. Deleted: search/trunk/src/test/org/hibernate/search/test/id/providedId/Test= ProvidedId.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- search/trunk/src/test/org/hibernate/search/test/id/providedId/TestProvi= dedId.java 2008-08-11 08:54:12 UTC (rev 15023) +++ search/trunk/src/test/org/hibernate/search/test/id/providedId/TestProvi= dedId.java 2008-08-11 08:59:29 UTC (rev 15024) @@ -1,71 +0,0 @@ -package org.hibernate.search.test.id.providedId; - -import org.hibernate.Session; -import org.hibernate.Transaction; -import org.hibernate.search.test.SearchTestCase; -import org.hibernate.search.Search; -import org.hibernate.search.FullTextSession; -import org.hibernate.search.FullTextQuery; -import org.apache.lucene.search.Query; -import org.apache.lucene.queryParser.QueryParser; -import org.apache.lucene.queryParser.ParseException; -import org.apache.lucene.analysis.standard.StandardAnalyzer; - -import java.util.List; - -/** - * @author Navin Surtani (nsurtan= i(a)redhat.com) - */ -public class TestProvidedId extends SearchTestCase { - - JBossCachePerson person1, person2, person3, person4; - - protected Class[] getMappings() { - return new Class[]{ - JBossCachePerson.class - }; - } - - public void testProvidedId() throws ParseException { - - person1 =3D new JBossCachePerson(); - person1.setName("Navin Surtani"); - person1.setBlurb("Likes playing WoW"); - - person2 =3D new JBossCachePerson(); - person2.setName("Big Goat"); - person2.setBlurb("Eats grass"); - - person3 =3D new JBossCachePerson(); - person3.setName("Mini Goat"); - person3.setBlurb("Eats cheese"); - - person4 =3D new JBossCachePerson(); - person4.setName("Smelly Cat"); - person4.setBlurb("Eats fish"); - - - Session session =3D openSession(); - FullTextSession fullTextSession =3D Search.getFullTextSession(sessio= n); - Transaction transaction =3D fullTextSession.beginTransaction(); - session.save(person1); - session.save(person2); - session.save(person3); - session.save(person4); - - QueryParser parser =3D new QueryParser("Name", new StandardAnalyzer(= )); - Query luceneQuery =3D parser.parse("Goat"); - - FullTextQuery fullTextQuery =3D fullTextSession.createFullTextQuery(= luceneQuery, JBossCachePerson.class); - - - List results =3D fullTextQuery.list(); - - transaction.commit(); - session.close(); - - System.out.println("result size is " + results.size()); - } - - -} --===============4438983212305032032==--