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 InternalHeaderFieldsTest {
\r
30 private InternalHeaderFields createTestSubject() {
\r
31 return new InternalHeaderFields();
\r
35 public void testToString() throws Exception {
\r
36 InternalHeaderFields testSubject;
\r
40 testSubject = createTestSubject();
\r
41 result = testSubject.toString();
\r
45 public void testGetAdditionalProperties() throws Exception {
\r
46 InternalHeaderFields testSubject;
\r
47 Map<String, Object> result;
\r
50 testSubject = createTestSubject();
\r
51 result = testSubject.getAdditionalProperties();
\r
55 public void testSetAdditionalProperty() throws Exception {
\r
56 InternalHeaderFields testSubject;
\r
58 Object value = null;
\r
61 testSubject = createTestSubject();
\r
62 testSubject.setAdditionalProperty(name, value);
\r
66 public void testHashCode() throws Exception {
\r
67 InternalHeaderFields testSubject;
\r
71 testSubject = createTestSubject();
\r
72 result = testSubject.hashCode();
\r
76 public void testEquals() throws Exception {
\r
77 InternalHeaderFields testSubject;
\r
78 InternalHeaderFields testSubject2;
\r
79 Object other = null;
\r
83 testSubject = createTestSubject();
\r
84 testSubject2 = createTestSubject();
\r
85 result = testSubject.equals(other);
\r
86 result = testSubject.equals(testSubject);
\r
87 result = testSubject.equals(testSubject2);
\r
88 assertNotNull(result);
\r