7a554854b4850c547139d0f21f379233a543dab5
[dcaegen2/services/mapper.git] /
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 \r
17 package org.onap.dcaegen2.ves.domain.ves7_0;\r
18 \r
19 import static org.junit.Assert.assertNotNull;\r
20 import org.junit.Test;\r
21 \r
22 public class AdditionalMeasurementTest {\r
23 \r
24   private AdditionalMeasurement createTestSubject() {\r
25     return new AdditionalMeasurement();\r
26   }\r
27 \r
28   @Test\r
29   public void testGetName() throws Exception {\r
30     AdditionalMeasurement testSubject;\r
31 \r
32 \r
33     // default test\r
34     testSubject = createTestSubject();\r
35     testSubject.getName();\r
36   }\r
37 \r
38   @Test\r
39   public void testSetName() throws Exception {\r
40     AdditionalMeasurement testSubject;\r
41     String name = "";\r
42 \r
43     // default test\r
44     testSubject = createTestSubject();\r
45     testSubject.setName(name);\r
46   }\r
47 \r
48   @Test\r
49   public void testGetHashMap() throws Exception {\r
50     AdditionalMeasurement testSubject;\r
51 \r
52     // default test\r
53     testSubject = createTestSubject();\r
54     testSubject.getHashMap();\r
55   }\r
56 \r
57   @Test\r
58   public void testSetHashMap() throws Exception {\r
59     AdditionalMeasurement testSubject;\r
60     AlarmAdditionalInformation hashMap = null;\r
61 \r
62     // default test\r
63     testSubject = createTestSubject();\r
64     testSubject.setHashMap(hashMap);\r
65   }\r
66 \r
67   @Test\r
68   public void testToString() throws Exception {\r
69     AdditionalMeasurement testSubject;\r
70 \r
71 \r
72     // default test\r
73     testSubject = createTestSubject();\r
74     testSubject.toString();\r
75   }\r
76 \r
77   @Test\r
78   public void testHashCode() throws Exception {\r
79     AdditionalMeasurement testSubject;\r
80 \r
81 \r
82     // default test\r
83     testSubject = createTestSubject();\r
84     testSubject.hashCode();\r
85   }\r
86 \r
87   @Test\r
88   public void testEquals() throws Exception {\r
89     AdditionalMeasurement testSubject;\r
90     AdditionalMeasurement testSubject2;\r
91     Object other = null;\r
92     boolean result;\r
93     // default test\r
94     testSubject = createTestSubject();\r
95     testSubject2 = createTestSubject();\r
96     result = testSubject.equals(other);\r
97     result = testSubject.equals(testSubject);\r
98     result = testSubject.equals(testSubject2);\r
99     assertNotNull(result);\r
100 \r
101   }\r
102 }\r