Test coverage for Mapper MS
[dcaegen2/services/mapper.git] / UniversalVesAdapter / src / test / java / org / onap / dcaegen2 / ves / domain / ves7_0 / VesEventTest.java
1 /*\r
2  * ============LICENSE_START======================================================= ONAP : DCAE\r
3  * ================================================================================ Copyright 2018\r
4  * TechMahindra =================================================================================\r
5  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except\r
6  * in compliance with the License. You may obtain a copy of the License at\r
7  *\r
8  * http://www.apache.org/licenses/LICENSE-2.0\r
9  *\r
10  * Unless required by applicable law or agreed to in writing, software distributed under the License\r
11  * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express\r
12  * or implied. See the License for the specific language governing permissions and limitations under\r
13  * the License. ============LICENSE_END=========================================================\r
14  */\r
15 \r
16 package org.onap.dcaegen2.ves.domain.ves7_0;\r
17 \r
18 import static org.junit.Assert.assertNotNull;\r
19 import java.util.Map;\r
20 import org.junit.Test;\r
21 \r
22 \r
23 public class VesEventTest {\r
24 \r
25   private VesEvent createTestSubject() {\r
26     return new VesEvent();\r
27   }\r
28 \r
29   @Test\r
30   public void testGetEvent() throws Exception {\r
31     VesEvent testSubject;\r
32     Event result;\r
33 \r
34     // default test\r
35     testSubject = createTestSubject();\r
36     result = testSubject.getEvent();\r
37   }\r
38 \r
39   @Test\r
40   public void testSetEvent() throws Exception {\r
41     VesEvent testSubject;\r
42     Event event = null;\r
43 \r
44     // default test\r
45     testSubject = createTestSubject();\r
46     testSubject.setEvent(event);\r
47   }\r
48 \r
49   @Test\r
50   public void testToString() throws Exception {\r
51     VesEvent testSubject;\r
52     String result;\r
53 \r
54     // default test\r
55     testSubject = createTestSubject();\r
56     result = testSubject.toString();\r
57   }\r
58 \r
59   @Test\r
60   public void testGetAdditionalProperties() throws Exception {\r
61     VesEvent testSubject;\r
62     Map<String, Object> result;\r
63 \r
64     // default test\r
65     testSubject = createTestSubject();\r
66     result = testSubject.getAdditionalProperties();\r
67   }\r
68 \r
69   @Test\r
70   public void testSetAdditionalProperty() throws Exception {\r
71     VesEvent testSubject;\r
72     String name = "";\r
73     Object value = null;\r
74 \r
75     // default test\r
76     testSubject = createTestSubject();\r
77     testSubject.setAdditionalProperty(name, value);\r
78   }\r
79 \r
80   @Test\r
81   public void testHashCode() throws Exception {\r
82     VesEvent testSubject;\r
83     int result;\r
84 \r
85     // default test\r
86     testSubject = createTestSubject();\r
87     result = testSubject.hashCode();\r
88   }\r
89 \r
90   @Test\r
91   public void testEquals() throws Exception {\r
92     VesEvent testSubject;\r
93     VesEvent testSubject2;\r
94     Object other = null;\r
95     boolean result;\r
96 \r
97     // default test\r
98     testSubject = createTestSubject();\r
99     testSubject2 = createTestSubject();\r
100     result = testSubject.equals(other);\r
101     result = testSubject.equals(testSubject);\r
102     result = testSubject.equals(testSubject2);\r
103     assertNotNull(result);\r
104   }\r
105 }\r