Assert.assertTrue(rewriteMethod == multiTermRewriteMethodAttr
.getMultiTermRewriteMethod());
Assert.assertTrue(rewriteMethod == config
.get(ConfigurationKeys.MULTI_TERM_REWRITE_METHOD));
PositionIncrementsAttribute positionIncrementsAttr = config
.addAttribute(PositionIncrementsAttribute.class);
Assert.assertEquals(false, positionIncrementsAttr
.isPositionIncrementsEnabled());
Assert.assertEquals(false, config.get(
ConfigurationKeys.ENABLE_POSITION_INCREMENTS).booleanValue());
boolean posIncrEnabled = true;
positionIncrementsAttr.setPositionIncrementsEnabled(posIncrEnabled);
Assert.assertEquals(posIncrEnabled, positionIncrementsAttr
.isPositionIncrementsEnabled());
Assert.assertEquals(posIncrEnabled, config.get(
ConfigurationKeys.ENABLE_POSITION_INCREMENTS).booleanValue());
RangeCollatorAttribute rangeCollatorAttr = config