summaryrefslogtreecommitdiffstats
path: root/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/utils/ElasticSearchUtilTest.java
diff options
context:
space:
mode:
authorTal Gitelman <tg851x@intl.att.com>2018-05-30 18:19:45 +0300
committerTal Gitelman <tg851x@intl.att.com>2018-05-30 18:22:06 +0300
commita108e8bce15c71acec55b2d20cff546c0ae0a647 (patch)
treea610dda58bd0acba8cef6b7945ae986b59830dfe /catalog-dao/src/test/java/org/openecomp/sdc/be/dao/utils/ElasticSearchUtilTest.java
parent5a0a74f55f9661b218faff2f2ba710dc9a4f5443 (diff)
new unit tests for sdc-dao
Change-Id: I734ad9a0ef636ed6a2d70ff68dd06036bf2447e3 Issue-ID: SDC-1333 Signed-off-by: Tal Gitelman <tg851x@intl.att.com>
Diffstat (limited to 'catalog-dao/src/test/java/org/openecomp/sdc/be/dao/utils/ElasticSearchUtilTest.java')
-rw-r--r--catalog-dao/src/test/java/org/openecomp/sdc/be/dao/utils/ElasticSearchUtilTest.java19
1 files changed, 19 insertions, 0 deletions
diff --git a/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/utils/ElasticSearchUtilTest.java b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/utils/ElasticSearchUtilTest.java
new file mode 100644
index 0000000000..f2c73f59f5
--- /dev/null
+++ b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/utils/ElasticSearchUtilTest.java
@@ -0,0 +1,19 @@
+package org.openecomp.sdc.be.dao.utils;
+
+import org.elasticsearch.action.search.SearchResponse;
+import org.junit.Assert;
+import org.junit.Test;
+
+public class ElasticSearchUtilTest {
+
+ @Test
+ public void testIsResponseEmpty() throws Exception {
+ SearchResponse searchResponse = null;
+ boolean result;
+
+ // test 1
+ searchResponse = null;
+ result = ElasticSearchUtil.isResponseEmpty(searchResponse);
+ Assert.assertEquals(true, result);
+ }
+} \ No newline at end of file