diff options
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 00000000..440a2a7b --- /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 |