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