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.Test;
29 public class CategoryParameterTest {
31 private CategoryParameter createTestSubject() {
32 return new CategoryParameter();
36 public void testGetFamily() throws Exception {
37 CategoryParameter testSubject;
41 testSubject = createTestSubject();
42 result = testSubject.getFamily();
46 public void testSetFamily() throws Exception {
47 CategoryParameter testSubject;
51 testSubject = createTestSubject();
52 testSubject.setFamily(family);
56 public void testGetId() throws Exception {
57 CategoryParameter testSubject;
61 testSubject = createTestSubject();
62 result = testSubject.getId();
66 public void testGetCreated() throws Exception {
67 CategoryParameter testSubject;
71 testSubject = createTestSubject();
72 result = testSubject.getCreated();
76 public void testGetModified() throws Exception {
77 CategoryParameter testSubject;
81 testSubject = createTestSubject();
82 result = testSubject.getModified();
86 public void testGetCreatedId() throws Exception {
87 CategoryParameter testSubject;
91 testSubject = createTestSubject();
92 result = testSubject.getCreatedId();
96 public void testGetModifiedId() throws Exception {
97 CategoryParameter testSubject;
101 testSubject = createTestSubject();
102 result = testSubject.getModifiedId();
106 public void testGetName() throws Exception {
107 CategoryParameter testSubject;
111 testSubject = createTestSubject();
112 result = testSubject.getName();
116 public void testSetName() throws Exception {
117 CategoryParameter testSubject;
121 testSubject = createTestSubject();
122 testSubject.setName(name);
126 public void testGetAuditUserId() throws Exception {
127 CategoryParameter testSubject;
131 testSubject = createTestSubject();
132 result = testSubject.getAuditUserId();
136 public void testGetRowNum() throws Exception {
137 CategoryParameter testSubject;
141 testSubject = createTestSubject();
142 result = testSubject.getRowNum();
146 public void testGetAuditTrail() throws Exception {
147 CategoryParameter testSubject;
151 testSubject = createTestSubject();
152 result = testSubject.getAuditTrail();
156 public void testGetOptions() throws Exception {
157 CategoryParameter testSubject;
158 Set<CategoryParameterOption> result;
161 testSubject = createTestSubject();
162 result = testSubject.getOptions();
166 public void testSetOptions() throws Exception {
167 CategoryParameter testSubject;
168 Set<CategoryParameterOption> options = null;
171 testSubject = createTestSubject();
172 testSubject.setOptions(options);
176 public void testAddOption() throws Exception {
177 CategoryParameter testSubject;
178 CategoryParameterOption option = null;
182 testSubject = createTestSubject();
183 result = testSubject.addOption(option);
187 public void testIsIdSupported() throws Exception {
188 CategoryParameter testSubject;
192 testSubject = createTestSubject();
193 result = testSubject.isIdSupported();
197 public void testSetIdSupported() throws Exception {
198 CategoryParameter testSubject;
199 boolean idSupported = false;
202 testSubject = createTestSubject();
203 testSubject.setIdSupported(idSupported);