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.Map;
\r
25 import org.junit.Test;
\r
28 public class VesEventTest {
\r
30 private VesEvent createTestSubject() {
\r
31 return new VesEvent();
\r
35 public void testGetEvent() throws Exception {
\r
36 VesEvent testSubject;
\r
40 testSubject = createTestSubject();
\r
41 result = testSubject.getEvent();
\r
45 public void testSetEvent() throws Exception {
\r
46 VesEvent testSubject;
\r
50 testSubject = createTestSubject();
\r
51 testSubject.setEvent(event);
\r
55 public void testToString() throws Exception {
\r
56 VesEvent testSubject;
\r
60 testSubject = createTestSubject();
\r
61 result = testSubject.toString();
\r
65 public void testGetAdditionalProperties() throws Exception {
\r
66 VesEvent testSubject;
\r
67 Map<String, Object> result;
\r
70 testSubject = createTestSubject();
\r
71 result = testSubject.getAdditionalProperties();
\r
75 public void testSetAdditionalProperty() throws Exception {
\r
76 VesEvent testSubject;
\r
78 Object value = null;
\r
81 testSubject = createTestSubject();
\r
82 testSubject.setAdditionalProperty(name, value);
\r
86 public void testHashCode() throws Exception {
\r
87 VesEvent testSubject;
\r
91 testSubject = createTestSubject();
\r
92 result = testSubject.hashCode();
\r
96 public void testEquals() throws Exception {
\r
97 VesEvent testSubject;
\r
98 VesEvent testSubject2;
\r
99 Object other = null;
\r
103 testSubject = createTestSubject();
\r
104 testSubject2 = createTestSubject();
\r
105 result = testSubject.equals(other);
\r
106 result = testSubject.equals(testSubject);
\r
107 result = testSubject.equals(testSubject2);
\r
108 assertNotNull(result);
\r