X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fclustering%2Fservices_implementation%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fclustering%2Fservices_implementation%2Finternal%2FClusterManagerTest.java;h=ab0b63eb6db8dfbab86315c3f3638c1439cb4f69;hp=736a2b23ec8d9e63b074d2c7b194f6ae2b034859;hb=f3547ac7799c832edb82e61180bd03766fa4df89;hpb=258cac6ec48a0a4ff62b33b4bdcbac5105a1e006 diff --git a/opendaylight/clustering/services_implementation/src/test/java/org/opendaylight/controller/clustering/services_implementation/internal/ClusterManagerTest.java b/opendaylight/clustering/services_implementation/src/test/java/org/opendaylight/controller/clustering/services_implementation/internal/ClusterManagerTest.java index 736a2b23ec..ab0b63eb6d 100644 --- a/opendaylight/clustering/services_implementation/src/test/java/org/opendaylight/controller/clustering/services_implementation/internal/ClusterManagerTest.java +++ b/opendaylight/clustering/services_implementation/src/test/java/org/opendaylight/controller/clustering/services_implementation/internal/ClusterManagerTest.java @@ -89,8 +89,22 @@ public class ClusterManagerTest { Assert.assertTrue(true); } - // Create second cache properly this time, as non_transactional + // Create second cache NON_TRANSACTIONAL but with both ASYNC and SYNC, + // expect to complain cacheModeSet.remove(cacheMode.TRANSACTIONAL); + cacheModeSet.add(cacheMode.SYNC); + cacheModeSet.add(cacheMode.ASYNC); + try { + c2 = (CacheImpl) cm.createCache("Container1", "Cache2", cacheModeSet); + } catch (CacheExistException cee) { + Assert.assertTrue(false); + } catch (CacheConfigException cce) { + Assert.assertTrue(true); + } + + // Create second cache properly this time, as non_transactional and + // ASYNC + cacheModeSet.remove(cacheMode.SYNC); try { c2 = (CacheImpl) cm.createCache("Container1", "Cache2", cacheModeSet);