diff options
author | Luke Gleeson <luke.gleeson@est.tech> | 2023-08-18 13:17:32 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2023-08-18 13:17:32 +0000 |
commit | 7d486385a46b8dfa3a72db27dc4f31bf74d035bb (patch) | |
tree | c95b5934036239caae71398696dd0bf9fd231118 /cps-service/src/test | |
parent | 40181de5d69a84fd67dae6c6c7664427c2bbdf4a (diff) | |
parent | f4778800c815fbc962b194a177525957a564231d (diff) |
Merge "Device heartbeat listener"
Diffstat (limited to 'cps-service/src/test')
-rw-r--r-- | cps-service/src/test/groovy/org/onap/cps/cache/HazelcastCacheConfigSpec.groovy | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/cps-service/src/test/groovy/org/onap/cps/cache/HazelcastCacheConfigSpec.groovy b/cps-service/src/test/groovy/org/onap/cps/cache/HazelcastCacheConfigSpec.groovy index 8efd48547e..415e9fd496 100644 --- a/cps-service/src/test/groovy/org/onap/cps/cache/HazelcastCacheConfigSpec.groovy +++ b/cps-service/src/test/groovy/org/onap/cps/cache/HazelcastCacheConfigSpec.groovy @@ -45,10 +45,17 @@ class HazelcastCacheConfigSpec extends Specification { } else { assert result.config.queueConfigs.isEmpty() } + and: 'if applicable it has a set config with the expected name' + if (expectSetConfig) { + assert result.config.setConfigs.values()[0].name == 'my set config' + } else { + assert result.config.setConfigs.isEmpty() + } where: 'the following configs are used' - scenario | config || expectMapConfig | expectQueueConfig - 'Map Config' | HazelcastCacheConfig.createMapConfig('my map config') || true | false - 'Queue Config' | HazelcastCacheConfig.createQueueConfig('my queue config') || false | true + scenario | config || expectMapConfig | expectQueueConfig | expectSetConfig + 'Map Config' | HazelcastCacheConfig.createMapConfig('my map config') || true | false | false + 'Queue Config' | HazelcastCacheConfig.createQueueConfig('my queue config') || false | true | false + 'Set Config' | HazelcastCacheConfig.createSetConfig('my set config') || false | false | true } } |