Increasing test coverage for vid.mso.rest
[vid.git] / vid-app-common / src / test / java / org / onap / vid / model / CategoryParameterTest.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * VID
4  * ================================================================================
5  * Copyright (C) 2017 - 2019 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.onap.vid.model;
22
23 import java.io.Serializable;
24 import java.util.Date;
25 import java.util.Set;
26
27 import org.junit.Test;
28
29 public class CategoryParameterTest {
30
31     private CategoryParameter createTestSubject() {
32         return new CategoryParameter();
33     }
34
35     @Test
36     public void testGetFamily() throws Exception {
37         CategoryParameter testSubject;
38         String result;
39
40         // default test
41         testSubject = createTestSubject();
42         result = testSubject.getFamily();
43     }
44
45     @Test
46     public void testSetFamily() throws Exception {
47         CategoryParameter testSubject;
48         String family = "";
49
50         // default test
51         testSubject = createTestSubject();
52         testSubject.setFamily(family);
53     }
54
55     @Test
56     public void testGetId() throws Exception {
57         CategoryParameter testSubject;
58         Long result;
59
60         // default test
61         testSubject = createTestSubject();
62         result = testSubject.getId();
63     }
64
65     @Test
66     public void testGetCreated() throws Exception {
67         CategoryParameter testSubject;
68         Date result;
69
70         // default test
71         testSubject = createTestSubject();
72         result = testSubject.getCreated();
73     }
74
75     @Test
76     public void testGetModified() throws Exception {
77         CategoryParameter testSubject;
78         Date result;
79
80         // default test
81         testSubject = createTestSubject();
82         result = testSubject.getModified();
83     }
84
85     @Test
86     public void testGetCreatedId() throws Exception {
87         CategoryParameter testSubject;
88         Long result;
89
90         // default test
91         testSubject = createTestSubject();
92         result = testSubject.getCreatedId();
93     }
94
95     @Test
96     public void testGetModifiedId() throws Exception {
97         CategoryParameter testSubject;
98         Long result;
99
100         // default test
101         testSubject = createTestSubject();
102         result = testSubject.getModifiedId();
103     }
104
105     @Test
106     public void testGetName() throws Exception {
107         CategoryParameter testSubject;
108         String result;
109
110         // default test
111         testSubject = createTestSubject();
112         result = testSubject.getName();
113     }
114
115     @Test
116     public void testSetName() throws Exception {
117         CategoryParameter testSubject;
118         String name = "";
119
120         // default test
121         testSubject = createTestSubject();
122         testSubject.setName(name);
123     }
124
125     @Test
126     public void testGetAuditUserId() throws Exception {
127         CategoryParameter testSubject;
128         Serializable result;
129
130         // default test
131         testSubject = createTestSubject();
132         result = testSubject.getAuditUserId();
133     }
134
135     @Test
136     public void testGetRowNum() throws Exception {
137         CategoryParameter testSubject;
138         Long result;
139
140         // default test
141         testSubject = createTestSubject();
142         result = testSubject.getRowNum();
143     }
144
145     @Test
146     public void testGetAuditTrail() throws Exception {
147         CategoryParameter testSubject;
148         Set result;
149
150         // default test
151         testSubject = createTestSubject();
152         result = testSubject.getAuditTrail();
153     }
154
155     @Test
156     public void testGetOptions() throws Exception {
157         CategoryParameter testSubject;
158         Set<CategoryParameterOption> result;
159
160         // default test
161         testSubject = createTestSubject();
162         result = testSubject.getOptions();
163     }
164
165     @Test
166     public void testSetOptions() throws Exception {
167         CategoryParameter testSubject;
168         Set<CategoryParameterOption> options = null;
169
170         // default test
171         testSubject = createTestSubject();
172         testSubject.setOptions(options);
173     }
174
175     @Test
176     public void testAddOption() throws Exception {
177         CategoryParameter testSubject;
178         CategoryParameterOption option = null;
179         boolean result;
180
181         // default test
182         testSubject = createTestSubject();
183         result = testSubject.addOption(option);
184     }
185
186     @Test
187     public void testIsIdSupported() throws Exception {
188         CategoryParameter testSubject;
189         boolean result;
190
191         // default test
192         testSubject = createTestSubject();
193         result = testSubject.isIdSupported();
194     }
195
196     @Test
197     public void testSetIdSupported() throws Exception {
198         CategoryParameter testSubject;
199         boolean idSupported = false;
200
201         // default test
202         testSubject = createTestSubject();
203         testSubject.setIdSupported(idSupported);
204     }
205 }