summaryrefslogtreecommitdiffstats
path: root/catalog-be/src/test/java/org/openecomp/sdc/common/transaction/impl/ESActionTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'catalog-be/src/test/java/org/openecomp/sdc/common/transaction/impl/ESActionTest.java')
-rw-r--r--catalog-be/src/test/java/org/openecomp/sdc/common/transaction/impl/ESActionTest.java29
1 files changed, 29 insertions, 0 deletions
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/common/transaction/impl/ESActionTest.java b/catalog-be/src/test/java/org/openecomp/sdc/common/transaction/impl/ESActionTest.java
new file mode 100644
index 0000000000..e01879226f
--- /dev/null
+++ b/catalog-be/src/test/java/org/openecomp/sdc/common/transaction/impl/ESActionTest.java
@@ -0,0 +1,29 @@
+package org.openecomp.sdc.common.transaction.impl;
+
+import org.junit.Test;
+import org.openecomp.sdc.be.dao.impl.ESCatalogDAO;
+import org.openecomp.sdc.be.resources.data.ESArtifactData;
+import org.openecomp.sdc.common.transaction.api.TransactionUtils.DBActionCodeEnum;
+import org.openecomp.sdc.common.transaction.api.TransactionUtils.ESActionTypeEnum;
+import org.openecomp.sdc.exception.IndexingServiceException;
+
+public class ESActionTest {
+
+ @Test
+ public void testDoAction() throws Exception {
+ ESAction testSubject = new ESAction(new ESCatalogDAO(), new ESArtifactData(), ESActionTypeEnum.ADD_ARTIFACT);;
+ DBActionCodeEnum result;
+
+ // default test
+ result = testSubject.doAction();
+ }
+
+ @Test(expected = IndexingServiceException.class)
+ public void testDoAction1() throws Exception {
+ ESAction testSubject = new ESAction(new ESCatalogDAO(), new ESArtifactData(), ESActionTypeEnum.REMOVE_ARTIFACT);;
+ DBActionCodeEnum result;
+
+ // default test
+ result = testSubject.doAction();
+ }
+} \ No newline at end of file