new unit tests for sdc-dao
[sdc.git] / catalog-dao / src / test / java / org / openecomp / sdc / be / dao / utils / ElasticSearchUtilTest.java
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 (file)
index 0000000..f2c73f5
--- /dev/null
@@ -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