Author: sannegrinovero
Date: 2008-06-14 03:43:17 -0400 (Sat, 14 Jun 2008)
New Revision: 14766
Modified:
search/trunk/src/test/org/hibernate/search/test/reader/NotSharedReaderPerfTest.java
search/trunk/src/test/org/hibernate/search/test/reader/ReaderPerfTestCase.java
search/trunk/src/test/org/hibernate/search/test/reader/SharedReaderPerfTest.java
Log:
cleanup ReaderPerfTestCase: was run twice in suite.
Modified:
search/trunk/src/test/org/hibernate/search/test/reader/NotSharedReaderPerfTest.java
===================================================================
---
search/trunk/src/test/org/hibernate/search/test/reader/NotSharedReaderPerfTest.java 2008-06-13
22:42:10 UTC (rev 14765)
+++
search/trunk/src/test/org/hibernate/search/test/reader/NotSharedReaderPerfTest.java 2008-06-14
07:43:17 UTC (rev 14766)
@@ -2,9 +2,7 @@
package org.hibernate.search.test.reader;
import org.hibernate.cfg.Configuration;
-import org.hibernate.search.store.FSDirectoryProvider;
import org.hibernate.search.Environment;
-import org.apache.lucene.analysis.StopAnalyzer;
/**
* @author Emmanuel Bernard
@@ -12,9 +10,6 @@
public class NotSharedReaderPerfTest extends ReaderPerfTestCase {
protected void configure(Configuration cfg) {
super.configure( cfg );
- cfg.setProperty( "hibernate.search.default.directory_provider",
FSDirectoryProvider.class.getName() );
- cfg.setProperty( "hibernate.search.default.indexBase",
"./indextemp" );
- cfg.setProperty( Environment.ANALYZER_CLASS, StopAnalyzer.class.getName() );
cfg.setProperty( Environment.READER_STRATEGY, "not-shared" );
}
}
Modified: search/trunk/src/test/org/hibernate/search/test/reader/ReaderPerfTestCase.java
===================================================================
---
search/trunk/src/test/org/hibernate/search/test/reader/ReaderPerfTestCase.java 2008-06-13
22:42:10 UTC (rev 14765)
+++
search/trunk/src/test/org/hibernate/search/test/reader/ReaderPerfTestCase.java 2008-06-14
07:43:17 UTC (rev 14766)
@@ -26,7 +26,7 @@
/**
* @author Emmanuel Bernard
*/
-public class ReaderPerfTestCase extends SearchTestCase {
+public abstract class ReaderPerfTestCase extends SearchTestCase {
protected void setUp() throws Exception {
File sub = getBaseIndexDir();
sub.mkdir();
@@ -221,7 +221,7 @@
super.configure( cfg );
File sub = getBaseIndexDir();
cfg.setProperty( "hibernate.search.default.indexBase", sub.getAbsolutePath()
);
- cfg.setProperty( "hibernate.search.Clock.directory_provider",
FSDirectoryProvider.class.getName() );
+ cfg.setProperty( "hibernate.search.default.directory_provider",
FSDirectoryProvider.class.getName() );
cfg.setProperty( Environment.ANALYZER_CLASS, StopAnalyzer.class.getName() );
}
Modified:
search/trunk/src/test/org/hibernate/search/test/reader/SharedReaderPerfTest.java
===================================================================
---
search/trunk/src/test/org/hibernate/search/test/reader/SharedReaderPerfTest.java 2008-06-13
22:42:10 UTC (rev 14765)
+++
search/trunk/src/test/org/hibernate/search/test/reader/SharedReaderPerfTest.java 2008-06-14
07:43:17 UTC (rev 14766)
@@ -2,10 +2,7 @@
package org.hibernate.search.test.reader;
import org.hibernate.cfg.Configuration;
-import org.hibernate.search.store.RAMDirectoryProvider;
-import org.hibernate.search.store.FSDirectoryProvider;
import org.hibernate.search.Environment;
-import org.apache.lucene.analysis.StopAnalyzer;
/**
* @author Emmanuel Bernard
@@ -13,9 +10,6 @@
public class SharedReaderPerfTest extends ReaderPerfTestCase {
protected void configure(Configuration cfg) {
super.configure( cfg );
- cfg.setProperty( "hibernate.search.default.directory_provider",
FSDirectoryProvider.class.getName() );
- cfg.setProperty( "hibernate.search.default.indexBase",
"./indextemp" );
- cfg.setProperty( Environment.ANALYZER_CLASS, StopAnalyzer.class.getName() );
cfg.setProperty( Environment.READER_STRATEGY, "shared" );
}
}