From 78028f3b588241200e31b71b8190e9926af626e9 Mon Sep 17 00:00:00 2001 From: Ofir Sonsino Date: Mon, 9 Oct 2017 11:08:05 +0300 Subject: Improve SONAR coverage Change-Id: Ib36c2e6df9fe100a301b89769078c7a06d3a9ae5 Issue-ID: VID-72 Signed-off-by: Ofir Sonsino --- .../vid/policy/PolicyResponseWrapperTest.java | 70 ++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 vid-app-common/src/test/java/org/openecomp/vid/policy/PolicyResponseWrapperTest.java (limited to 'vid-app-common/src/test/java/org/openecomp/vid/policy/PolicyResponseWrapperTest.java') diff --git a/vid-app-common/src/test/java/org/openecomp/vid/policy/PolicyResponseWrapperTest.java b/vid-app-common/src/test/java/org/openecomp/vid/policy/PolicyResponseWrapperTest.java new file mode 100644 index 00000000..21a33725 --- /dev/null +++ b/vid-app-common/src/test/java/org/openecomp/vid/policy/PolicyResponseWrapperTest.java @@ -0,0 +1,70 @@ +package org.openecomp.vid.policy; + +import org.junit.Test; + +public class PolicyResponseWrapperTest { + + private PolicyResponseWrapper createTestSubject() { + return new PolicyResponseWrapper(); + } + + @Test + public void testGetEntity() throws Exception { + PolicyResponseWrapper testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getEntity(); + } + + @Test + public void testGetStatus() throws Exception { + PolicyResponseWrapper testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getStatus(); + } + + @Test + public void testSetStatus() throws Exception { + PolicyResponseWrapper testSubject; + int v = 0; + + // default test + testSubject = createTestSubject(); + testSubject.setStatus(v); + } + + @Test + public void testSetEntity() throws Exception { + PolicyResponseWrapper testSubject; + String v = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setEntity(v); + } + + @Test + public void testToString() throws Exception { + PolicyResponseWrapper testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + @Test + public void testGetResponse() throws Exception { + PolicyResponseWrapper testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getResponse(); + } +} \ No newline at end of file -- cgit 1.2.3-korg