import org.infinispan.Cache;
import org.infinispan.manager.DefaultCacheManager;
import org.infinispan.manager.EmbeddedCacheManager;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
import static org.testng.Assert.assertFalse;
@Test
public class IndexingConfigurationIgnored {
Cache simpleSearchableCache;
@BeforeMethod
public void init() throws Exception {
EmbeddedCacheManager manager = new DefaultCacheManager("simple_caches.xml", true);
simpleSearchableCache = manager.getCache("simple-searchable");
simpleSearchableCache.start();
}
@Test
public void testIndexingParametersForNamedCache() {
assertFalse(simpleSearchableCache.getConfiguration().getIndexingProperties().isEmpty(), "should contain definition from xml");
}
}