2 * ============LICENSE_START=======================================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 package org.onap.vid.model;
23 import java.io.Serializable;
24 import java.util.Date;
27 import org.junit.Assert;
28 import org.junit.Test;
30 public class CategoryParameterOptionTest {
32 private CategoryParameterOption createTestSubject() {
33 return new CategoryParameterOption();
37 public void testGetId() throws Exception {
38 CategoryParameterOption testSubject;
42 testSubject = createTestSubject();
43 result = testSubject.getId();
47 public void testSetId() throws Exception {
48 CategoryParameterOption testSubject;
52 testSubject = createTestSubject();
53 testSubject.setId(id);
57 public void testGetAppId() throws Exception {
58 CategoryParameterOption testSubject;
62 testSubject = createTestSubject();
63 result = testSubject.getAppId();
67 public void testSetAppId() throws Exception {
68 CategoryParameterOption testSubject;
72 testSubject = createTestSubject();
73 testSubject.setAppId(appId);
77 public void testGetName() throws Exception {
78 CategoryParameterOption testSubject;
82 testSubject = createTestSubject();
83 result = testSubject.getName();
87 public void testSetName() throws Exception {
88 CategoryParameterOption testSubject;
92 testSubject = createTestSubject();
93 testSubject.setName(name);
97 public void testGetCategoryParameter() throws Exception {
98 CategoryParameterOption testSubject;
99 CategoryParameter result;
102 testSubject = createTestSubject();
103 result = testSubject.getCategoryParameter();
107 public void testSetCategoryParameter() throws Exception {
108 CategoryParameterOption testSubject;
109 CategoryParameter categoryParameter = null;
112 testSubject = createTestSubject();
113 testSubject.setCategoryParameter(categoryParameter);
117 public void testGetCreated() throws Exception {
118 CategoryParameterOption testSubject;
122 testSubject = createTestSubject();
123 result = testSubject.getCreated();
127 public void testGetModified() throws Exception {
128 CategoryParameterOption testSubject;
132 testSubject = createTestSubject();
133 result = testSubject.getModified();
137 public void testGetCreatedId() throws Exception {
138 CategoryParameterOption testSubject;
142 testSubject = createTestSubject();
143 result = testSubject.getCreatedId();
147 public void testGetModifiedId() throws Exception {
148 CategoryParameterOption testSubject;
152 testSubject = createTestSubject();
153 result = testSubject.getModifiedId();
157 public void testGetAuditUserId() throws Exception {
158 CategoryParameterOption testSubject;
162 testSubject = createTestSubject();
163 result = testSubject.getAuditUserId();
167 public void testGetRowNum() throws Exception {
168 CategoryParameterOption testSubject;
172 testSubject = createTestSubject();
173 result = testSubject.getRowNum();
177 public void testGetAuditTrail() throws Exception {
178 CategoryParameterOption testSubject;
182 testSubject = createTestSubject();
183 result = testSubject.getAuditTrail();
187 public void testEquals() throws Exception {
188 CategoryParameterOption testSubject;
193 testSubject = createTestSubject();
195 result = testSubject.equals(o);
196 Assert.assertEquals(false, result);
200 public void testHashCode() throws Exception {
201 CategoryParameterOption testSubject;
205 testSubject = createTestSubject();
206 result = testSubject.hashCode();