summaryrefslogtreecommitdiffstats
path: root/vid-app-common/src/test/java/org/openecomp/vid/controller/HealthCheckControllerTest.java
diff options
context:
space:
mode:
authorOfir Sonsino <os0695@att.com>2017-10-08 15:04:04 +0300
committerOfir Sonsino <os0695@att.com>2017-10-08 15:04:04 +0300
commit3274b39fef63c43c6eeb202e98b71b01e0f714ff (patch)
treeb4135727278ada8ca46848e7c1d99b20a2403bd6 /vid-app-common/src/test/java/org/openecomp/vid/controller/HealthCheckControllerTest.java
parent1b796b793fd5a1187873f5a792b170dc16725761 (diff)
Improve SONAR coverage
Change-Id: I02e9535f96040cd038ef064ee5881c4c3e5e7bca Issue-ID: VID-72 Signed-off-by: Ofir Sonsino <os0695@att.com>
Diffstat (limited to 'vid-app-common/src/test/java/org/openecomp/vid/controller/HealthCheckControllerTest.java')
-rw-r--r--vid-app-common/src/test/java/org/openecomp/vid/controller/HealthCheckControllerTest.java47
1 files changed, 47 insertions, 0 deletions
diff --git a/vid-app-common/src/test/java/org/openecomp/vid/controller/HealthCheckControllerTest.java b/vid-app-common/src/test/java/org/openecomp/vid/controller/HealthCheckControllerTest.java
new file mode 100644
index 000000000..045ad9a61
--- /dev/null
+++ b/vid-app-common/src/test/java/org/openecomp/vid/controller/HealthCheckControllerTest.java
@@ -0,0 +1,47 @@
+package org.openecomp.vid.controller;
+
+import org.junit.Test;
+import org.openecomp.vid.controller.HealthCheckController.HealthStatus;
+
+public class HealthCheckControllerTest {
+
+ private HealthCheckController createTestSubject() {
+ return new HealthCheckController();
+ }
+
+ @Test
+ public void testGetProfileCount() throws Exception {
+ HealthCheckController testSubject;
+ String driver = "";
+ String URL = "";
+ String username = "";
+ String password = "";
+ int result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getProfileCount(driver, URL, username, password);
+ }
+
+ @Test
+ public void testGethealthCheckStatusforIDNS() throws Exception {
+ HealthCheckController testSubject;
+ HealthStatus result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.gethealthCheckStatusforIDNS();
+ }
+
+ @Test
+ public void testGetHealthCheck() throws Exception {
+ HealthCheckController testSubject;
+ String UserAgent = "";
+ String ECOMPRequestID = "";
+ HealthStatus result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getHealthCheck(UserAgent, ECOMPRequestID);
+ }
+} \ No newline at end of file