Node API - Find root by anchor method performance
[cps.git] / cps-ri / src / test / groovy / org / onap / cps / spi / impl / CpsPersistenceSpecBase.groovy
index 1fbff65..1ecad4e 100644 (file)
 package org.onap.cps.spi.impl
 
 import com.fasterxml.jackson.databind.ObjectMapper
-import com.hazelcast.config.Config
-import com.hazelcast.instance.impl.HazelcastInstanceFactory
-import com.hazelcast.map.IMap
 import org.onap.cps.DatabaseTestContainer
-import org.onap.cps.spi.cache.AnchorDataCacheEntry
 import org.onap.cps.spi.repository.AnchorRepository
 import org.onap.cps.spi.repository.DataspaceRepository
 import org.onap.cps.spi.repository.FragmentRepository
@@ -62,12 +58,6 @@ class CpsPersistenceSpecBase extends Specification {
     @SpringBean
     JsonObjectMapper jsonObjectMapper = new JsonObjectMapper(new ObjectMapper())
 
-    // Instantiate Hazelcast with different name for testing purposes!
-    @SpringBean
-    IMap<String, AnchorDataCacheEntry> anchorDataCache = HazelcastInstanceFactory
-        .getOrCreateHazelcastInstance(new Config('hazelcastTestInstance'))
-        .getMap('testAnchorDataCacheMap')
-
     static final String CLEAR_DATA = '/data/clear-all.sql'
 
     static final String DATASPACE_NAME = 'DATASPACE-001'
@@ -78,4 +68,5 @@ class CpsPersistenceSpecBase extends Specification {
     static final String ANCHOR_NAME3 = 'ANCHOR-003'
     static final String ANCHOR_FOR_DATA_NODES_WITH_LEAVES = 'ANCHOR-003'
     static final String ANCHOR_FOR_SHOP_EXAMPLE = 'ANCHOR-004'
+    static final String ANCHOR_HAVING_SINGLE_TOP_LEVEL_FRAGMENT = 'ANCHOR-005'
 }