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;
22 import static org.junit.Assert.assertNotNull;
26 import org.junit.Test;
28 public class AdditionalParameterTest {
30 private AdditionalParameter createTestSubject() {
31 return new AdditionalParameter();
35 public void testGetCriticality() throws Exception {
36 AdditionalParameter testSubject;
40 testSubject = createTestSubject();
41 result = testSubject.getCriticality();
46 public void testSetCriticality() throws Exception {
47 AdditionalParameter testSubject;
48 String criticality = "";
51 testSubject = createTestSubject();
52 testSubject.setCriticality(criticality);
56 public void testGetName() throws Exception {
57 AdditionalParameter testSubject;
61 testSubject = createTestSubject();
62 result = testSubject.getName();
67 public void testSetName() throws Exception {
68 AdditionalParameter testSubject;
72 testSubject = createTestSubject();
73 testSubject.setName(name);
77 public void testGetThresholdCrossed() throws Exception {
78 AdditionalParameter testSubject;
82 testSubject = createTestSubject();
83 result = testSubject.getThresholdCrossed();
88 public void testSetThresholdCrossed() throws Exception {
89 AdditionalParameter testSubject;
90 String thresholdCrossed = "";
93 testSubject = createTestSubject();
94 testSubject.setThresholdCrossed(thresholdCrossed);
98 public void testGetValue() throws Exception {
99 AdditionalParameter testSubject;
103 testSubject = createTestSubject();
104 result = testSubject.getValue();
109 public void testSetValue() throws Exception {
110 AdditionalParameter testSubject;
114 testSubject = createTestSubject();
115 testSubject.setValue(value);
119 public void testGetAdditionalProperties() throws Exception {
120 AdditionalParameter testSubject;
121 Map<String, Object> result;
124 testSubject = createTestSubject();
125 result = testSubject.getAdditionalProperties();
130 public void testSetAdditionalProperty() throws Exception {
131 AdditionalParameter testSubject;
136 testSubject = createTestSubject();
137 testSubject.setAdditionalProperty(name, value);
141 public void testToString() throws Exception {
142 AdditionalParameter testSubject;
146 testSubject = createTestSubject();
147 result = testSubject.toString();
152 public void testHashCode() throws Exception {
153 AdditionalParameter testSubject;
157 testSubject = createTestSubject();
158 result = testSubject.hashCode();
163 public void testEquals() throws Exception {
164 AdditionalParameter testSubject;
169 testSubject = createTestSubject();
170 result = testSubject.equals(other);