diff options
author | Sonsino, Ofir (os0695) <os0695@intl.att.com> | 2018-03-19 17:39:39 +0200 |
---|---|---|
committer | Sonsino, Ofir (os0695) <os0695@intl.att.com> | 2018-03-19 17:39:39 +0200 |
commit | 728e24f8d47287eeb4994780706adbe7ec99d941 (patch) | |
tree | 719a2193df6f53ae879385f2e9206c1996bf80c1 /vid-app-common/src/test/java/org/onap/vid/services/CategoryParameterServiceImplTest.java | |
parent | a94ec86f242d57fc0832f2658114ae8c9d1c6b1c (diff) |
Unit tests
Change-Id: I0834a2b68d61664a82492c8465fa82aee6c0f017
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/services/CategoryParameterServiceImplTest.java')
-rw-r--r-- | vid-app-common/src/test/java/org/onap/vid/services/CategoryParameterServiceImplTest.java | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/vid-app-common/src/test/java/org/onap/vid/services/CategoryParameterServiceImplTest.java b/vid-app-common/src/test/java/org/onap/vid/services/CategoryParameterServiceImplTest.java new file mode 100644 index 000000000..440a2a7bf --- /dev/null +++ b/vid-app-common/src/test/java/org/onap/vid/services/CategoryParameterServiceImplTest.java @@ -0,0 +1,80 @@ +package org.onap.vid.services; + +import org.junit.Test; +import org.onap.vid.category.AddCategoryOptionResponse; +import org.onap.vid.category.AddCategoryOptionsRequest; +import org.onap.vid.category.CategoryParameterOptionRep; +import org.onap.vid.category.CategoryParametersResponse; +import org.onap.vid.model.CategoryParameterOption; + +public class CategoryParameterServiceImplTest { + + private CategoryParameterServiceImpl createTestSubject() { + return new CategoryParameterServiceImpl(); + } + + @Test + public void testCreateCategoryParameterOptions() throws Exception { + CategoryParameterServiceImpl testSubject; + String categoryName = ""; + AddCategoryOptionsRequest optionsRequest = null; + AddCategoryOptionResponse result; + + // default test + try { + testSubject = createTestSubject(); + result = testSubject.createCategoryParameterOptions(categoryName, optionsRequest); + } catch ( + + Exception e) { + } + } + + @Test + public void testDeleteCategoryOption() throws Exception { + CategoryParameterServiceImpl testSubject; + String categoryName = ""; + CategoryParameterOption option = null; + + // default test + try { + testSubject = createTestSubject(); + testSubject.deleteCategoryOption(categoryName, option); + } catch ( + + Exception e) { + } + } + + @Test + public void testGetCategoryParameters() throws Exception { + CategoryParameterServiceImpl testSubject; + CategoryParametersResponse result; + + // default test + try { + testSubject = createTestSubject(); + testSubject.getCategoryParameters(null); + } catch ( + + Exception e) { + } + } + + @Test + public void testUpdateCategoryParameterOption() throws Exception { + CategoryParameterServiceImpl testSubject; + String categoryName = ""; + CategoryParameterOptionRep option = null; + AddCategoryOptionResponse result; + + // default test + try { + testSubject = createTestSubject(); + result = testSubject.updateCategoryParameterOption(categoryName, option); + } catch ( + + Exception e) { + } + } +}
\ No newline at end of file |