@Test(expectedExceptions = IllegalArgumentException.class,
expectedExceptionsMessageRegExp = "ISPN(\\d)*: Lucene Directory for index '" + INDEX_NAME +
"' can not use Metadata Cache '" + CACHE_NAME + "': eviction enabled on the Cache configuration!")
public void testFailOnEviction() {
ConfigurationBuilder builder = new ConfigurationBuilder();
builder.eviction().strategy(EvictionStrategy.LIRS).maxEntries(1);
doConfigurationTest(builder);
}
@Test(expectedExceptions = IllegalArgumentException.class,
expectedExceptionsMessageRegExp = "ISPN(\\d)*: Lucene Directory for index '" + INDEX_NAME +