diff options
author | Sonsino, Ofir (os0695) <os0695@intl.att.com> | 2018-03-13 18:31:21 +0200 |
---|---|---|
committer | Sonsino, Ofir (os0695) <os0695@intl.att.com> | 2018-03-13 18:31:21 +0200 |
commit | d5ec7bf55217508e2b5cebe640d586598379f97a (patch) | |
tree | 4bbe052d2eb67c11c5fbc22998c95e55e7aef4d0 /vid-app-common/src/test/java/org/onap/vid/category | |
parent | 80098ffa01c5a0f4dd5b99f41c31d51e9dc25762 (diff) |
Unit tests
Change-Id: Ib9f73b7ba5a509610896b8bbdc02c180e60ee959
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/category')
-rw-r--r-- | vid-app-common/src/test/java/org/onap/vid/category/CategoryParameterOptionRepTest.java | 50 | ||||
-rw-r--r-- | vid-app-common/src/test/java/org/onap/vid/category/CategoryParametersResponseTest.java | 33 |
2 files changed, 83 insertions, 0 deletions
diff --git a/vid-app-common/src/test/java/org/onap/vid/category/CategoryParameterOptionRepTest.java b/vid-app-common/src/test/java/org/onap/vid/category/CategoryParameterOptionRepTest.java new file mode 100644 index 00000000..e1836df5 --- /dev/null +++ b/vid-app-common/src/test/java/org/onap/vid/category/CategoryParameterOptionRepTest.java @@ -0,0 +1,50 @@ +package org.onap.vid.category; + +import org.junit.Test; + +public class CategoryParameterOptionRepTest { + + private CategoryParameterOptionRep createTestSubject() { + return new CategoryParameterOptionRep(); + } + + @Test + public void testGetId() throws Exception { + CategoryParameterOptionRep testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getId(); + } + + @Test + public void testSetId() throws Exception { + CategoryParameterOptionRep testSubject; + String id = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setId(id); + } + + @Test + public void testGetName() throws Exception { + CategoryParameterOptionRep testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getName(); + } + + @Test + public void testSetName() throws Exception { + CategoryParameterOptionRep testSubject; + String name = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setName(name); + } +}
\ No newline at end of file diff --git a/vid-app-common/src/test/java/org/onap/vid/category/CategoryParametersResponseTest.java b/vid-app-common/src/test/java/org/onap/vid/category/CategoryParametersResponseTest.java new file mode 100644 index 00000000..840f8f25 --- /dev/null +++ b/vid-app-common/src/test/java/org/onap/vid/category/CategoryParametersResponseTest.java @@ -0,0 +1,33 @@ +package org.onap.vid.category; + +import java.util.List; +import java.util.Map; + +import org.junit.Test; + +public class CategoryParametersResponseTest { + + private CategoryParametersResponse createTestSubject() { + return new CategoryParametersResponse(); + } + + @Test + public void testGetCategoryParameters() throws Exception { + CategoryParametersResponse testSubject; + Map<String, List<CategoryParameterOptionRep>> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCategoryParameters(); + } + + @Test + public void testSetCategoryParameters() throws Exception { + CategoryParametersResponse testSubject; + Map<String, List<CategoryParameterOptionRep>> categoryParameters = null; + + // default test + testSubject = createTestSubject(); + testSubject.setCategoryParameters(categoryParameters); + } +}
\ No newline at end of file |