use of org.infinispan.persistence.dummy.DummyInMemoryStoreConfiguration in project infinispan by infinispan.
the class XmlFileParsingTest method testDummyInMemoryStore.
public void testDummyInMemoryStore() {
String config = TestingUtil.wrapXMLWithoutSchema("<cache-container default-cache=\"default\">" + " <local-cache name=\"default\">\n" + " <persistence >\n" + " <dummy-store xmlns=\"urn:infinispan:config:store:dummy:" + Version.getSchemaVersion() + "\" store-name=\"myStore\" />\n" + " </persistence >\n" + " </local-cache>\n" + "</cache-container>");
ConfigurationBuilderHolder holder = parseStringConfiguration(config);
PersistenceConfiguration cfg = holder.getDefaultConfigurationBuilder().build().persistence();
StoreConfiguration storeConfiguration = cfg.stores().get(0);
assertTrue(storeConfiguration instanceof DummyInMemoryStoreConfiguration);
DummyInMemoryStoreConfiguration dummyInMemoryStoreConfiguration = (DummyInMemoryStoreConfiguration) storeConfiguration;
assertEquals("myStore", dummyInMemoryStoreConfiguration.storeName());
}
Aggregations