[hibernate-commits] Hibernate SVN: r17542 - search/branches/Branch_3_0_1_GA_CP/src/test/org/hibernate/search/test/directoryProvider.

hibernate-commits at lists.jboss.org hibernate-commits at lists.jboss.org
Fri Sep 25 05:47:20 EDT 2009


Author: jcosta at redhat.com
Date: 2009-09-25 05:47:20 -0400 (Fri, 25 Sep 2009)
New Revision: 17542

Modified:
   search/branches/Branch_3_0_1_GA_CP/src/test/org/hibernate/search/test/directoryProvider/FSSlaveAndMasterDPTest.java
Log:
HSEARCH-401 - Removed logging from FSSlaveAndMasterDPTest, as slf4j is not available in the branch

Modified: search/branches/Branch_3_0_1_GA_CP/src/test/org/hibernate/search/test/directoryProvider/FSSlaveAndMasterDPTest.java
===================================================================
--- search/branches/Branch_3_0_1_GA_CP/src/test/org/hibernate/search/test/directoryProvider/FSSlaveAndMasterDPTest.java	2009-09-25 09:18:24 UTC (rev 17541)
+++ search/branches/Branch_3_0_1_GA_CP/src/test/org/hibernate/search/test/directoryProvider/FSSlaveAndMasterDPTest.java	2009-09-25 09:47:20 UTC (rev 17542)
@@ -7,8 +7,6 @@
 
 import org.apache.lucene.analysis.StopAnalyzer;
 import org.apache.lucene.queryParser.QueryParser;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
 
 import org.hibernate.Session;
 import org.hibernate.Transaction;
@@ -26,8 +24,6 @@
  */
 public class FSSlaveAndMasterDPTest extends MultipleSFTestCase {
 
-	private static final Logger log = LoggerFactory.getLogger(FSSlaveAndMasterDPTest.class);
-
 	private static File root;
 
 	static {
@@ -36,7 +32,6 @@
 			buildDir = ".";
 		}
 		root = new File( buildDir, "lucenedirs" );
-		log.info( "Using {} as test directory.", root.getAbsolutePath() );
 	}
 
 	/**
@@ -85,7 +80,6 @@
 		Thread.sleep( waitPeriodMilli );
 
 		// assert that the master hass indexed the snowstorm
-		log.info( "Searching master" );
 		fullTextSession = Search.createFullTextSession( getMasterSession() );
 		tx = fullTextSession.beginTransaction();
 		result = fullTextSession.createFullTextQuery( parser.parse( "location:dallas" ) ).list();
@@ -94,7 +88,6 @@
 		fullTextSession.close();
 
 		// assert that index got copied to the salve as well
-		log.info( "Searching slave" );
 		fullTextSession = Search.createFullTextSession( getSlaveSession() );
 		tx = fullTextSession.beginTransaction();
 		result = fullTextSession.createFullTextQuery( parser.parse( "location:dallas" ) ).list();
@@ -115,7 +108,6 @@
 		Thread.sleep( waitPeriodMilli ); //wait a bit more than 2 refresh (one master / one slave)
 
 		// assert that the new snowstorm made it into the slave
-		log.info( "Searching slave" );
 		fullTextSession = Search.createFullTextSession( getSlaveSession() );
 		tx = fullTextSession.beginTransaction();
 		result = fullTextSession.createFullTextQuery( parser.parse( "location:chennai" ) ).list();
@@ -135,7 +127,6 @@
 		Thread.sleep( waitPeriodMilli ); //wait a bit more than 2 refresh (one master / one slave)
 
 		// once more - assert that the new snowstorm made it into the slave
-		log.info( "Searching slave" );
 		fullTextSession = Search.createFullTextSession( getSlaveSession() );
 		tx = fullTextSession.beginTransaction();
 		result = fullTextSession.createFullTextQuery( parser.parse( "location:melbourne" ) ).list();
@@ -181,7 +172,6 @@
 
 	protected void tearDown() throws Exception {
 		super.tearDown();
-		log.info( "Deleting test directory {} ", root.getAbsolutePath() );
 		FileHelper.delete( root );
 	}
 



More information about the hibernate-commits mailing list