Unit tests
[vid.git] / vid-app-common / src / test / java / org / onap / vid / services / CategoryParameterServiceImplTest.java
1 package org.onap.vid.services;
2
3 import org.junit.Test;
4 import org.onap.vid.category.AddCategoryOptionResponse;
5 import org.onap.vid.category.AddCategoryOptionsRequest;
6 import org.onap.vid.category.CategoryParameterOptionRep;
7 import org.onap.vid.category.CategoryParametersResponse;
8 import org.onap.vid.model.CategoryParameterOption;
9
10 public class CategoryParameterServiceImplTest {
11
12     private CategoryParameterServiceImpl createTestSubject() {
13         return new CategoryParameterServiceImpl();
14     }
15
16     @Test
17     public void testCreateCategoryParameterOptions() throws Exception {
18         CategoryParameterServiceImpl testSubject;
19         String categoryName = "";
20         AddCategoryOptionsRequest optionsRequest = null;
21         AddCategoryOptionResponse result;
22
23         // default test
24         try {
25             testSubject = createTestSubject();
26             result = testSubject.createCategoryParameterOptions(categoryName, optionsRequest);
27         } catch (
28
29         Exception e) {
30         }
31     }
32
33     @Test
34     public void testDeleteCategoryOption() throws Exception {
35         CategoryParameterServiceImpl testSubject;
36         String categoryName = "";
37         CategoryParameterOption option = null;
38
39         // default test
40         try {
41             testSubject = createTestSubject();
42             testSubject.deleteCategoryOption(categoryName, option);
43         } catch (
44
45         Exception e) {
46         }
47     }
48
49     @Test
50     public void testGetCategoryParameters() throws Exception {
51         CategoryParameterServiceImpl testSubject;
52         CategoryParametersResponse result;
53
54         // default test
55         try {
56             testSubject = createTestSubject();
57             testSubject.getCategoryParameters(null);
58         } catch (
59
60         Exception e) {
61         }
62     }
63
64     @Test
65     public void testUpdateCategoryParameterOption() throws Exception {
66         CategoryParameterServiceImpl testSubject;
67         String categoryName = "";
68         CategoryParameterOptionRep option = null;
69         AddCategoryOptionResponse result;
70
71         // default test
72         try {
73             testSubject = createTestSubject();
74             result = testSubject.updateCategoryParameterOption(categoryName, option);
75         } catch (
76
77         Exception e) {
78         }
79     }
80 }