starts threads each for every supported collector
[dcaegen2/services/mapper.git] / UniversalVesAdapter / src / test / java / org / onap / dcaegen2 / ves / domain / NameValuePairTest.java
1 /*
2 * ============LICENSE_START=======================================================
3 * ONAP : DCAE
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
10 *
11 *     http://www.apache.org/licenses/LICENSE-2.0
12 *
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=========================================================
19 */
20 package org.onap.dcaegen2.ves.domain;
21
22 import java.util.Map;
23
24 import org.junit.Test;
25
26 public class NameValuePairTest {
27
28         private NameValuePair createTestSubject() {
29                 return new NameValuePair();
30         }
31
32         @Test
33         public void testGetName() throws Exception {
34                 NameValuePair testSubject;
35                 String result;
36
37                 // default test
38                 testSubject = createTestSubject();
39                 result = testSubject.getName();
40         }
41
42         @Test
43         public void testSetName() throws Exception {
44                 NameValuePair testSubject;
45                 String name = "";
46
47                 // default test
48                 testSubject = createTestSubject();
49                 testSubject.setName(name);
50         }
51
52         @Test
53         public void testGetValue() throws Exception {
54                 NameValuePair testSubject;
55                 String result;
56
57                 // default test
58                 testSubject = createTestSubject();
59                 result = testSubject.getValue();
60         }
61
62         @Test
63         public void testSetValue() throws Exception {
64                 NameValuePair testSubject;
65                 String value = "";
66
67                 // default test
68                 testSubject = createTestSubject();
69                 testSubject.setValue(value);
70         }
71
72         @Test
73         public void testGetAdditionalProperties() throws Exception {
74                 NameValuePair testSubject;
75                 Map<String, Object> result;
76
77                 // default test
78                 testSubject = createTestSubject();
79                 result = testSubject.getAdditionalProperties();
80         }
81
82         @Test
83         public void testSetAdditionalProperty() throws Exception {
84                 NameValuePair testSubject;
85                 String name = "";
86                 Object value = null;
87
88                 // default test
89                 testSubject = createTestSubject();
90                 testSubject.setAdditionalProperty(name, value);
91         }
92
93         @Test
94         public void testToString() throws Exception {
95                 NameValuePair testSubject;
96                 String result;
97
98                 // default test
99                 testSubject = createTestSubject();
100                 result = testSubject.toString();
101         }
102
103         @Test
104         public void testHashCode() throws Exception {
105                 NameValuePair testSubject;
106                 int result;
107
108                 // default test
109                 testSubject = createTestSubject();
110                 result = testSubject.hashCode();
111         }
112
113         @Test
114         public void testEquals() throws Exception {
115                 NameValuePair testSubject;
116                 Object other = null;
117                 boolean result;
118
119                 // default test
120                 testSubject = createTestSubject();
121                 result = testSubject.equals(other);
122         }
123 }