use of org.apache.geode.internal.cache.xmlcache.CacheTransactionManagerCreation in project geode by apache.
the class CacheXml66DUnitTest method testNoTXWriterOnClient.
@Test
public void testNoTXWriterOnClient() throws Exception {
// test writer is not created
ClientCacheCreation cc = new ClientCacheCreation();
CacheTransactionManagerCreation txMgrCreation = new CacheTransactionManagerCreation();
txMgrCreation.setWriter(new TestTransactionWriter());
cc.addCacheTransactionManagerCreation(txMgrCreation);
IgnoredException expectedException = IgnoredException.addIgnoredException(LocalizedStrings.TXManager_NO_WRITER_ON_CLIENT.toLocalizedString());
try {
testXml(cc);
fail("expected exception not thrown");
} catch (IllegalStateException e) {
} finally {
expectedException.remove();
}
}
Aggregations