summaryrefslogtreecommitdiffstats
path: root/vid-app-common/src/test/java/org/openecomp/vid/policy/PolicyUtilTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'vid-app-common/src/test/java/org/openecomp/vid/policy/PolicyUtilTest.java')
-rw-r--r--vid-app-common/src/test/java/org/openecomp/vid/policy/PolicyUtilTest.java54
1 files changed, 54 insertions, 0 deletions
diff --git a/vid-app-common/src/test/java/org/openecomp/vid/policy/PolicyUtilTest.java b/vid-app-common/src/test/java/org/openecomp/vid/policy/PolicyUtilTest.java
new file mode 100644
index 000000000..b7f88ac3d
--- /dev/null
+++ b/vid-app-common/src/test/java/org/openecomp/vid/policy/PolicyUtilTest.java
@@ -0,0 +1,54 @@
+package org.openecomp.vid.policy;
+
+import org.apache.poi.hssf.record.formula.functions.T;
+import org.glassfish.jersey.client.ClientResponse;
+import org.junit.Assert;
+import org.junit.Test;
+
+public class PolicyUtilTest {
+
+ private PolicyUtil createTestSubject() {
+ return new PolicyUtil();
+ }
+
+ @Test
+ public void testWrapResponse() throws Exception {
+ String body = "";
+ int statusCode = 0;
+ PolicyResponseWrapper result;
+
+ // default test
+ result = PolicyUtil.wrapResponse(body, statusCode);
+ }
+
+
+ @Test
+ public void testWrapResponse_2() throws Exception {
+ RestObject<String> rs = null;
+ PolicyResponseWrapper result;
+
+ // test 1
+ rs = null;
+ result = PolicyUtil.wrapResponse(rs);
+ Assert.assertNotNull(result);
+ }
+
+ @Test
+ public void testConvertPojoToString() throws Exception {
+ T t = null;
+ String result;
+
+ // test 1
+ t = null;
+ result = PolicyUtil.convertPojoToString(t);
+ Assert.assertEquals("", result);
+ }
+
+ @Test
+ public void testMain() throws Exception {
+ String[] args = new String[] { "" };
+
+ // default test
+ PolicyUtil.main(args);
+ }
+} \ No newline at end of file