Author: sannegrinovero
Date: 2009-11-05 09:01:32 -0500 (Thu, 05 Nov 2009)
New Revision: 17930
Modified:
search/trunk/src/test/java/org/hibernate/search/test/configuration/ShardsConfigurationTest.java
Log:
HSEARCH-201 (IndexWriter settings meant for transactional operations won't be
inherited by the settings meant for batch operations) missing testcase
Modified:
search/trunk/src/test/java/org/hibernate/search/test/configuration/ShardsConfigurationTest.java
===================================================================
---
search/trunk/src/test/java/org/hibernate/search/test/configuration/ShardsConfigurationTest.java 2009-11-05
12:06:31 UTC (rev 17929)
+++
search/trunk/src/test/java/org/hibernate/search/test/configuration/ShardsConfigurationTest.java 2009-11-05
14:01:32 UTC (rev 17930)
@@ -90,6 +90,7 @@
assertTrue( docDirProviders[0] instanceof RAMDirectoryProvider );
assertTrue( docDirProviders[1] instanceof FSDirectoryProvider );
assertTrue( docDirProviders[2] instanceof RAMDirectoryProvider );
+ assertValueIsSet( Document.class, 0, BATCH, MAX_BUFFERED_DOCS, 4 );
}
public void testShardN2UsesDefaults() throws Exception {
@@ -99,7 +100,7 @@
assertValueIsDefault( Document.class, 2, TRANSACTION, RAM_BUFFER_SIZE );
assertValueIsSet( Document.class, 2, BATCH, MAX_BUFFERED_DOCS, 4 );
assertValueIsSet( Document.class, 2, BATCH, MAX_MERGE_DOCS, 5 );
- assertValueIsSet( Document.class, 2, BATCH, MERGE_FACTOR, 100 );
+ assertValueIsDefault( Document.class, 2, BATCH, MERGE_FACTOR );
assertValueIsDefault( Document.class, 2, BATCH, RAM_BUFFER_SIZE );
}
@@ -108,11 +109,6 @@
assertValueIsSet( Document.class, 1, BATCH, MAX_MERGE_DOCS, 11 );
}
- public void testShard_BatchInheritedFromTransaction() throws Exception {
- assertValueIsSet( Document.class, 1, BATCH, TERM_INDEX_INTERVAL, 12 );
- assertValueIsSet( Document.class, 0, BATCH, MAX_BUFFERED_DOCS, 4 );
- }
-
protected Class[] getMappings() {
return new Class[] {
Book.class,