Increasing test coverage for vid.mso.rest
[vid.git] / vid-app-common / src / test / java / org / onap / vid / model / CategoryParameterOptionTest.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.Assert;
28 import org.junit.Test;
29
30 public class CategoryParameterOptionTest {
31
32     private CategoryParameterOption createTestSubject() {
33         return new CategoryParameterOption();
34     }
35
36     @Test
37     public void testGetId() throws Exception {
38         CategoryParameterOption testSubject;
39         Long result;
40
41         // default test
42         testSubject = createTestSubject();
43         result = testSubject.getId();
44     }
45
46     @Test
47     public void testSetId() throws Exception {
48         CategoryParameterOption testSubject;
49         Long id = null;
50
51         // default test
52         testSubject = createTestSubject();
53         testSubject.setId(id);
54     }
55
56     @Test
57     public void testGetAppId() throws Exception {
58         CategoryParameterOption testSubject;
59         String result;
60
61         // default test
62         testSubject = createTestSubject();
63         result = testSubject.getAppId();
64     }
65
66     @Test
67     public void testSetAppId() throws Exception {
68         CategoryParameterOption testSubject;
69         String appId = "";
70
71         // default test
72         testSubject = createTestSubject();
73         testSubject.setAppId(appId);
74     }
75
76     @Test
77     public void testGetName() throws Exception {
78         CategoryParameterOption testSubject;
79         String result;
80
81         // default test
82         testSubject = createTestSubject();
83         result = testSubject.getName();
84     }
85
86     @Test
87     public void testSetName() throws Exception {
88         CategoryParameterOption testSubject;
89         String name = "";
90
91         // default test
92         testSubject = createTestSubject();
93         testSubject.setName(name);
94     }
95
96     @Test
97     public void testGetCategoryParameter() throws Exception {
98         CategoryParameterOption testSubject;
99         CategoryParameter result;
100
101         // default test
102         testSubject = createTestSubject();
103         result = testSubject.getCategoryParameter();
104     }
105
106     @Test
107     public void testSetCategoryParameter() throws Exception {
108         CategoryParameterOption testSubject;
109         CategoryParameter categoryParameter = null;
110
111         // default test
112         testSubject = createTestSubject();
113         testSubject.setCategoryParameter(categoryParameter);
114     }
115
116     @Test
117     public void testGetCreated() throws Exception {
118         CategoryParameterOption testSubject;
119         Date result;
120
121         // default test
122         testSubject = createTestSubject();
123         result = testSubject.getCreated();
124     }
125
126     @Test
127     public void testGetModified() throws Exception {
128         CategoryParameterOption testSubject;
129         Date result;
130
131         // default test
132         testSubject = createTestSubject();
133         result = testSubject.getModified();
134     }
135
136     @Test
137     public void testGetCreatedId() throws Exception {
138         CategoryParameterOption testSubject;
139         Long result;
140
141         // default test
142         testSubject = createTestSubject();
143         result = testSubject.getCreatedId();
144     }
145
146     @Test
147     public void testGetModifiedId() throws Exception {
148         CategoryParameterOption testSubject;
149         Long result;
150
151         // default test
152         testSubject = createTestSubject();
153         result = testSubject.getModifiedId();
154     }
155
156     @Test
157     public void testGetAuditUserId() throws Exception {
158         CategoryParameterOption testSubject;
159         Serializable result;
160
161         // default test
162         testSubject = createTestSubject();
163         result = testSubject.getAuditUserId();
164     }
165
166     @Test
167     public void testGetRowNum() throws Exception {
168         CategoryParameterOption testSubject;
169         Long result;
170
171         // default test
172         testSubject = createTestSubject();
173         result = testSubject.getRowNum();
174     }
175
176     @Test
177     public void testGetAuditTrail() throws Exception {
178         CategoryParameterOption testSubject;
179         Set result;
180
181         // default test
182         testSubject = createTestSubject();
183         result = testSubject.getAuditTrail();
184     }
185
186     @Test
187     public void testEquals() throws Exception {
188         CategoryParameterOption testSubject;
189         Object o = null;
190         boolean result;
191
192         // test 1
193         testSubject = createTestSubject();
194         o = null;
195         result = testSubject.equals(o);
196         Assert.assertEquals(false, result);
197     }
198
199     @Test
200     public void testHashCode() throws Exception {
201         CategoryParameterOption testSubject;
202         int result;
203
204         // default test
205         testSubject = createTestSubject();
206         result = testSubject.hashCode();
207     }
208
209 }