2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 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.openecomp.sdc.be.resources.data.auditing;
23 import org.junit.Test;
24 import org.openecomp.sdc.be.resources.data.auditing.model.CommonAuditData;
26 import java.util.Date;
27 import java.util.UUID;
30 public class GetCategoryHierarchyEventTest {
32 private GetCategoryHierarchyEvent createTestSubject() {
33 return new GetCategoryHierarchyEvent();
37 public void testCtor() throws Exception {
38 new GetCategoryHierarchyEvent();
39 new GetCategoryHierarchyEvent("mock", CommonAuditData.newBuilder().build(), "mock", "mock");
43 public void testFillFields() throws Exception {
44 GetCategoryHierarchyEvent testSubject;
47 testSubject = createTestSubject();
48 testSubject.fillFields();
53 public void testGetTimebaseduuid() throws Exception {
54 GetCategoryHierarchyEvent testSubject;
58 testSubject = createTestSubject();
59 result = testSubject.getTimebaseduuid();
64 public void testSetTimebaseduuid() throws Exception {
65 GetCategoryHierarchyEvent testSubject;
66 UUID timebaseduuid = null;
69 testSubject = createTestSubject();
70 testSubject.setTimebaseduuid(timebaseduuid);
75 public void testGetTimestamp1() throws Exception {
76 GetCategoryHierarchyEvent testSubject;
80 testSubject = createTestSubject();
81 result = testSubject.getTimestamp1();
86 public void testSetTimestamp1() throws Exception {
87 GetCategoryHierarchyEvent testSubject;
88 Date timestamp1 = null;
91 testSubject = createTestSubject();
92 testSubject.setTimestamp1(timestamp1);
97 public void testGetRequestId() throws Exception {
98 GetCategoryHierarchyEvent testSubject;
102 testSubject = createTestSubject();
103 result = testSubject.getRequestId();
108 public void testSetRequestId() throws Exception {
109 GetCategoryHierarchyEvent testSubject;
110 String requestId = "";
113 testSubject = createTestSubject();
114 testSubject.setRequestId(requestId);
119 public void testGetAction() throws Exception {
120 GetCategoryHierarchyEvent testSubject;
124 testSubject = createTestSubject();
125 result = testSubject.getAction();
130 public void testSetAction() throws Exception {
131 GetCategoryHierarchyEvent testSubject;
135 testSubject = createTestSubject();
136 testSubject.setAction(action);
141 public void testGetStatus() throws Exception {
142 GetCategoryHierarchyEvent testSubject;
146 testSubject = createTestSubject();
147 result = testSubject.getStatus();
152 public void testSetStatus() throws Exception {
153 GetCategoryHierarchyEvent testSubject;
157 testSubject = createTestSubject();
158 testSubject.setStatus(status);
163 public void testGetDesc() throws Exception {
164 GetCategoryHierarchyEvent testSubject;
168 testSubject = createTestSubject();
169 result = testSubject.getDesc();
174 public void testSetDesc() throws Exception {
175 GetCategoryHierarchyEvent testSubject;
179 testSubject = createTestSubject();
180 testSubject.setDesc(desc);
185 public void testGetModifier() throws Exception {
186 GetCategoryHierarchyEvent testSubject;
190 testSubject = createTestSubject();
191 result = testSubject.getModifier();
196 public void testSetModifier() throws Exception {
197 GetCategoryHierarchyEvent testSubject;
198 String modifier = "";
201 testSubject = createTestSubject();
202 testSubject.setModifier(modifier);
207 public void testGetDetails() throws Exception {
208 GetCategoryHierarchyEvent testSubject;
212 testSubject = createTestSubject();
213 result = testSubject.getDetails();
218 public void testSetDetails() throws Exception {
219 GetCategoryHierarchyEvent testSubject;
223 testSubject = createTestSubject();
224 testSubject.setDetails(details);
229 public void testToString() throws Exception {
230 GetCategoryHierarchyEvent testSubject;
234 testSubject = createTestSubject();
235 result = testSubject.toString();