X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=src%2Ftest%2Fjava%2Forg%2Fopenecomp%2Fdatarouter%2Fpolicy%2FInMemorySearchDatastore.java;fp=src%2Ftest%2Fjava%2Forg%2Fopenecomp%2Fdatarouter%2Fpolicy%2FInMemorySearchDatastore.java;h=4b25f6e7dafdd20889161af7fa1c02d67d4967e6;hb=1e6752c966b48eb2351416691c96f9858c54f978;hp=0000000000000000000000000000000000000000;hpb=98d2d4fa91a9e9dc4a4444fe9aee0bf299de7d7b;p=aai%2Fdata-router.git diff --git a/src/test/java/org/openecomp/datarouter/policy/InMemorySearchDatastore.java b/src/test/java/org/openecomp/datarouter/policy/InMemorySearchDatastore.java new file mode 100644 index 0000000..4b25f6e --- /dev/null +++ b/src/test/java/org/openecomp/datarouter/policy/InMemorySearchDatastore.java @@ -0,0 +1,24 @@ +package org.openecomp.datarouter.policy; + +import java.util.concurrent.ConcurrentHashMap; + +public final class InMemorySearchDatastore { + + private final static ConcurrentHashMap documents = new ConcurrentHashMap(); + + public static ConcurrentHashMap getAll() { + return documents; + } + + public static void put(String key, String value) { + documents.put(key, value); + } + + public static String get(String key) { + return documents.get(key); + } + + public static void remove(String key) { + documents.remove(key); + } +}