2 * ============LICENSE_START=======================================================
\r
4 * ================================================================================
\r
5 * Copyright 2018 TechMahindra
\r
6 *=================================================================================
\r
7 * Licensed under the Apache License, Version 2.0 (the "License");
\r
8 * you may not use this file except in compliance with the License.
\r
9 * You may obtain a copy of the License at
\r
11 * http://www.apache.org/licenses/LICENSE-2.0
\r
13 * Unless required by applicable law or agreed to in writing, software
\r
14 * distributed under the License is distributed on an "AS IS" BASIS,
\r
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
16 * See the License for the specific language governing permissions and
\r
17 * limitations under the License.
\r
18 * ============LICENSE_END=========================================================
\r
21 package org.onap.dcaegen2.ves.domain.ves7_0;
\r
23 import static org.junit.Assert.assertNotNull;
\r
24 import java.util.List;
\r
25 import org.junit.Test;
\r
26 import org.onap.dcaegen2.ves.domain.ves7_0.NotificationFields.NotificationFieldsVersion;
\r
29 public class NotificationFieldsTest {
\r
31 private NotificationFields createTestSubject() {
\r
32 return new NotificationFields();
\r
36 public void testGetAdditionalFields() throws Exception {
\r
37 NotificationFields testSubject;
\r
38 AlarmAdditionalInformation result;
\r
41 testSubject = createTestSubject();
\r
42 result = testSubject.getAdditionalFields();
\r
46 public void testSetAdditionalFields() throws Exception {
\r
47 NotificationFields testSubject;
\r
48 AlarmAdditionalInformation additionalFields = null;
\r
51 testSubject = createTestSubject();
\r
52 testSubject.setAdditionalFields(additionalFields);
\r
56 public void testGetArrayOfNamedHashMap() throws Exception {
\r
57 NotificationFields testSubject;
\r
58 List<AdditionalMeasurement> result;
\r
61 testSubject = createTestSubject();
\r
62 result = testSubject.getArrayOfNamedHashMap();
\r
66 public void testSetArrayOfNamedHashMap() throws Exception {
\r
67 NotificationFields testSubject;
\r
68 List<AdditionalMeasurement> arrayOfNamedHashMap = null;
\r
71 testSubject = createTestSubject();
\r
72 testSubject.setArrayOfNamedHashMap(arrayOfNamedHashMap);
\r
76 public void testGetChangeContact() throws Exception {
\r
77 NotificationFields testSubject;
\r
81 testSubject = createTestSubject();
\r
82 result = testSubject.getChangeContact();
\r
86 public void testSetChangeContact() throws Exception {
\r
87 NotificationFields testSubject;
\r
88 String changeContact = "";
\r
91 testSubject = createTestSubject();
\r
92 testSubject.setChangeContact(changeContact);
\r
96 public void testGetChangeIdentifier() throws Exception {
\r
97 NotificationFields testSubject;
\r
101 testSubject = createTestSubject();
\r
102 result = testSubject.getChangeIdentifier();
\r
106 public void testSetChangeIdentifier() throws Exception {
\r
107 NotificationFields testSubject;
\r
108 String changeIdentifier = "";
\r
111 testSubject = createTestSubject();
\r
112 testSubject.setChangeIdentifier(changeIdentifier);
\r
116 public void testGetChangeType() throws Exception {
\r
117 NotificationFields testSubject;
\r
121 testSubject = createTestSubject();
\r
122 result = testSubject.getChangeType();
\r
126 public void testSetChangeType() throws Exception {
\r
127 NotificationFields testSubject;
\r
128 String changeType = "";
\r
131 testSubject = createTestSubject();
\r
132 testSubject.setChangeType(changeType);
\r
136 public void testGetNewState() throws Exception {
\r
137 NotificationFields testSubject;
\r
141 testSubject = createTestSubject();
\r
142 result = testSubject.getNewState();
\r
146 public void testSetNewState() throws Exception {
\r
147 NotificationFields testSubject;
\r
148 String newState = "";
\r
151 testSubject = createTestSubject();
\r
152 testSubject.setNewState(newState);
\r
156 public void testGetOldState() throws Exception {
\r
157 NotificationFields testSubject;
\r
161 testSubject = createTestSubject();
\r
162 result = testSubject.getOldState();
\r
166 public void testSetOldState() throws Exception {
\r
167 NotificationFields testSubject;
\r
168 String oldState = "";
\r
171 testSubject = createTestSubject();
\r
172 testSubject.setOldState(oldState);
\r
176 public void testGetNotificationFieldsVersion() throws Exception {
\r
177 NotificationFields testSubject;
\r
178 NotificationFieldsVersion result;
\r
181 testSubject = createTestSubject();
\r
182 result = testSubject.getNotificationFieldsVersion();
\r
186 public void testSetNotificationFieldsVersion() throws Exception {
\r
187 NotificationFields testSubject;
\r
188 NotificationFieldsVersion notificationFieldsVersion = NotificationFieldsVersion._2_0;
\r
191 testSubject = createTestSubject();
\r
192 testSubject.setNotificationFieldsVersion(notificationFieldsVersion);
\r
196 public void testGetStateInterface() throws Exception {
\r
197 NotificationFields testSubject;
\r
201 testSubject = createTestSubject();
\r
202 result = testSubject.getStateInterface();
\r
206 public void testSetStateInterface() throws Exception {
\r
207 NotificationFields testSubject;
\r
208 String stateInterface = "";
\r
211 testSubject = createTestSubject();
\r
212 testSubject.setStateInterface(stateInterface);
\r
216 public void testToString() throws Exception {
\r
217 NotificationFields testSubject;
\r
221 testSubject = createTestSubject();
\r
222 result = testSubject.toString();
\r
226 public void testHashCode() throws Exception {
\r
227 NotificationFields testSubject;
\r
231 testSubject = createTestSubject();
\r
232 result = testSubject.hashCode();
\r
236 public void testEquals() throws Exception {
\r
237 NotificationFields testSubject;
\r
238 NotificationFields testSubject2;
\r
239 Object other = null;
\r
243 testSubject = createTestSubject();
\r
244 testSubject2 = createTestSubject();
\r
245 result = testSubject.equals(other);
\r
246 result = testSubject.equals(testSubject);
\r
247 result = testSubject.equals(testSubject2);
\r
248 assertNotNull(result);
\r