From c9d63f49af5455f503ca63395121b7cd4d8c8c88 Mon Sep 17 00:00:00 2001 From: "Sonsino, Ofir (os0695)" Date: Wed, 14 Mar 2018 12:04:50 +0200 Subject: Unit tests Change-Id: I9c63fd607757bbec095c26341af593d9afd73886 Issue-ID: VID-197 Signed-off-by: Sonsino, Ofir (os0695) --- .../onap/vid/policy/PolicyRestInterfaceTest.java | 31 ++++++++++++++-------- 1 file changed, 20 insertions(+), 11 deletions(-) (limited to 'vid-app-common/src/test/java/org/onap/vid/policy/PolicyRestInterfaceTest.java') 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 -- cgit 1.2.3-korg