diff options
author | 2017-10-09 13:25:29 +0300 | |
---|---|---|
committer | 2017-10-09 13:25:29 +0300 | |
commit | 61091bdc1ea5736de68acabd84095ba6932d7b8b (patch) | |
tree | 6c92b68b684e60c4e72c0269debed1050bce59c6 /vid-app-common/src/test/java/org/openecomp/vid/policy/rest | |
parent | 78028f3b588241200e31b71b8190e9926af626e9 (diff) |
Improve SONAR coverage
Change-Id: Icdae04aadd50e29a55db559a69495a688ea34b0e
Issue-ID: VID-72
Signed-off-by: Ofir Sonsino <os0695@att.com>
Diffstat (limited to 'vid-app-common/src/test/java/org/openecomp/vid/policy/rest')
-rw-r--r-- | vid-app-common/src/test/java/org/openecomp/vid/policy/rest/RequestDetailsTest.java | 33 | ||||
-rw-r--r-- | vid-app-common/src/test/java/org/openecomp/vid/policy/rest/TestSuite.java | 11 |
2 files changed, 44 insertions, 0 deletions
diff --git a/vid-app-common/src/test/java/org/openecomp/vid/policy/rest/RequestDetailsTest.java b/vid-app-common/src/test/java/org/openecomp/vid/policy/rest/RequestDetailsTest.java new file mode 100644 index 00000000..70577557 --- /dev/null +++ b/vid-app-common/src/test/java/org/openecomp/vid/policy/rest/RequestDetailsTest.java @@ -0,0 +1,33 @@ +package org.openecomp.vid.policy.rest; + +import org.junit.Test; + + +public class RequestDetailsTest { + + private RequestDetails createTestSubject() { + return new RequestDetails(); + } + + + @Test + public void testGetPolicyName() throws Exception { + RequestDetails testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getPolicyName(); + } + + + @Test + public void testSetPolicyName() throws Exception { + RequestDetails testSubject; + String policyName = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setPolicyName(policyName); + } +}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/openecomp/vid/policy/rest/TestSuite.java b/vid-app-common/src/test/java/org/openecomp/vid/policy/rest/TestSuite.java new file mode 100644 index 00000000..9b491c86 --- /dev/null +++ b/vid-app-common/src/test/java/org/openecomp/vid/policy/rest/TestSuite.java @@ -0,0 +1,11 @@ +package org.openecomp.vid.policy.rest; + +import org.junit.runner.RunWith; +import org.junit.runners.Suite; + +@RunWith(Suite.class) +@Suite.SuiteClasses( + +{ RequestDetailsTest.class }) +public class TestSuite { // nothing +} |