2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright 2018 TechMahindra
6 *=================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
20 package org.onap.dcaegen2.ves.domain;
24 import org.junit.Test;
26 public class NameValuePairTest {
28 private NameValuePair createTestSubject() {
29 return new NameValuePair();
33 public void testGetName() throws Exception {
34 NameValuePair testSubject;
38 testSubject = createTestSubject();
39 result = testSubject.getName();
43 public void testSetName() throws Exception {
44 NameValuePair testSubject;
48 testSubject = createTestSubject();
49 testSubject.setName(name);
53 public void testGetValue() throws Exception {
54 NameValuePair testSubject;
58 testSubject = createTestSubject();
59 result = testSubject.getValue();
63 public void testSetValue() throws Exception {
64 NameValuePair testSubject;
68 testSubject = createTestSubject();
69 testSubject.setValue(value);
73 public void testGetAdditionalProperties() throws Exception {
74 NameValuePair testSubject;
75 Map<String, Object> result;
78 testSubject = createTestSubject();
79 result = testSubject.getAdditionalProperties();
83 public void testSetAdditionalProperty() throws Exception {
84 NameValuePair testSubject;
89 testSubject = createTestSubject();
90 testSubject.setAdditionalProperty(name, value);
94 public void testToString() throws Exception {
95 NameValuePair testSubject;
99 testSubject = createTestSubject();
100 result = testSubject.toString();
104 public void testHashCode() throws Exception {
105 NameValuePair testSubject;
109 testSubject = createTestSubject();
110 result = testSubject.hashCode();
114 public void testEquals() throws Exception {
115 NameValuePair testSubject;
120 testSubject = createTestSubject();
121 result = testSubject.equals(other);