Renaming openecomp to onap
[aai/data-router.git] / src / test / java / org / openecomp / datarouter / policy / EntityEventPolicyStubbed.java
diff --git a/src/test/java/org/openecomp/datarouter/policy/EntityEventPolicyStubbed.java b/src/test/java/org/openecomp/datarouter/policy/EntityEventPolicyStubbed.java
deleted file mode 100644 (file)
index b36108f..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-package org.openecomp.datarouter.policy;
-
-import java.io.FileNotFoundException;
-
-import org.onap.aai.datarouter.entity.DocumentStoreDataEntity;
-
-public class EntityEventPolicyStubbed extends EntityEventPolicy {
-       
-
-       public EntityEventPolicyStubbed(EntityEventPolicyConfig config) throws FileNotFoundException {
-               super(config);
-               
-       }
-
-       protected void handleSearchServiceOperation(DocumentStoreDataEntity eventEntity, String action, String index) {
-               //Stub out the actual call to Search Data service and instead store/update documents in memory
-               try {
-                       switch (action.toLowerCase()) {
-                       case "create":
-                               InMemorySearchDatastore.put(eventEntity.getId(), eventEntity.getAsJson()); // they are executed if variable == c1
-                               break;
-                       case "update":
-                               InMemorySearchDatastore.put(eventEntity.getId(), eventEntity.getAsJson()); // they are executed if variable == c1
-                               break;
-                       case "delete":
-                               InMemorySearchDatastore.remove(eventEntity.getId()); // they are executed if variable == c1
-                               break;
-                       default:
-                               break;
-                       }
-               } catch (Exception ex) {
-               }
-       }
-}