aboutsummaryrefslogtreecommitdiffstats
path: root/vid-app-common/src/test/java/org/onap/vid/policy
diff options
context:
space:
mode:
Diffstat (limited to 'vid-app-common/src/test/java/org/onap/vid/policy')
-rw-r--r--vid-app-common/src/test/java/org/onap/vid/policy/PolicyRestInterfaceFactoryTest.java18
-rw-r--r--vid-app-common/src/test/java/org/onap/vid/policy/PolicyRestInterfaceTest.java31
2 files changed, 38 insertions, 11 deletions
diff --git a/vid-app-common/src/test/java/org/onap/vid/policy/PolicyRestInterfaceFactoryTest.java b/vid-app-common/src/test/java/org/onap/vid/policy/PolicyRestInterfaceFactoryTest.java
new file mode 100644
index 000000000..bb21c89f0
--- /dev/null
+++ b/vid-app-common/src/test/java/org/onap/vid/policy/PolicyRestInterfaceFactoryTest.java
@@ -0,0 +1,18 @@
+package org.onap.vid.policy;
+
+import org.junit.Test;
+
+public class PolicyRestInterfaceFactoryTest {
+
+ private PolicyRestInterfaceFactory createTestSubject() {
+ return new PolicyRestInterfaceFactory();
+ }
+
+ @Test
+ public void testGetInstance() throws Exception {
+ PolicyRestInterfaceIfc result;
+
+ // default test
+ result = PolicyRestInterfaceFactory.getInstance();
+ }
+} \ No newline at end of file
diff --git a/vid-app-common/src/test/java/org/onap/vid/policy/PolicyRestInterfaceTest.java b/vid-app-common/src/test/java/org/onap/vid/policy/PolicyRestInterfaceTest.java
index 04f6890e2..0e74c7d83 100644
--- a/vid-app-common/src/test/java/org/onap/vid/policy/PolicyRestInterfaceTest.java
+++ b/vid-app-common/src/test/java/org/onap/vid/policy/PolicyRestInterfaceTest.java
@@ -7,18 +7,27 @@ import org.onap.vid.policy.rest.RequestDetails;
public class PolicyRestInterfaceTest {
- private PolicyRestInterface createTestSubject() {
- return new PolicyRestInterface();
- }
+ private PolicyRestInterface createTestSubject() {
+ return new PolicyRestInterface();
+ }
+ @Test
+ public void testLogRequest() throws Exception {
+ PolicyRestInterface testSubject;
+ RequestDetails r = null;
- @Test
- public void testLogRequest() throws Exception {
- PolicyRestInterface testSubject;
- RequestDetails r = null;
+ // default test
+ testSubject = createTestSubject();
+ testSubject.logRequest(r);
+ }
+
+ /*@Test
+ public void testInitRestClient() throws Exception {
+ PolicyRestInterface testSubject;
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.initRestClient();
+ }*/
- // default test
- testSubject = createTestSubject();
- testSubject.logRequest(r);
- }
} \ No newline at end of file