diff options
author | Sonsino, Ofir (os0695) <os0695@intl.att.com> | 2018-03-14 12:04:50 +0200 |
---|---|---|
committer | Sonsino, Ofir (os0695) <os0695@intl.att.com> | 2018-03-14 12:04:50 +0200 |
commit | c9d63f49af5455f503ca63395121b7cd4d8c8c88 (patch) | |
tree | 827ed548a95e05b99f35c494d6c6c654840ee90b /vid-app-common/src/test/java/org/onap/vid/policy | |
parent | d5ec7bf55217508e2b5cebe640d586598379f97a (diff) |
Unit tests
Change-Id: I9c63fd607757bbec095c26341af593d9afd73886
Issue-ID: VID-197
Signed-off-by: Sonsino, Ofir (os0695) <os0695@intl.att.com>
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.java | 18 | ||||
-rw-r--r-- | vid-app-common/src/test/java/org/onap/vid/policy/PolicyRestInterfaceTest.java | 31 |
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 00000000..bb21c89f --- /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 04f6890e..0e74c7d8 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 |