2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2019 IBM.
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.
19 * ============LICENSE_END=========================================================
22 package org.onap.sdnc.config.audit.node;
24 import static org.junit.Assert.assertEquals;
26 import java.util.HashMap;
29 import org.junit.Before;
30 import org.junit.Test;
32 public class TestParameters {
33 private Parameters parameters;
37 Map<String, String> inParams = new HashMap<>();
38 inParams.put("compareType", "testcompareType");
39 inParams.put("compareDataType", "testcompareDataType");
40 inParams.put("sourceData", "testsourceData");
41 inParams.put("targetData", "testtargetData");
42 inParams.put("sourceDataType", "testsourceDataType");
43 inParams.put("targetDataType", "testtargetDataType");
44 inParams.put("requestIdentifier", "testrequestIdentifier");
45 parameters = new Parameters(inParams);
49 public void testPayloadX() {
50 parameters.setPayloadX("PayloadX");
51 assertEquals("PayloadX", parameters.getPayloadX());
55 public void testPayloadXtype() {
56 parameters.setPayloadXtype("PayloadXtype");
57 assertEquals("PayloadXtype", parameters.getPayloadXtype());
61 public void testPayloadY() {
62 parameters.setPayloadY("PayloadY");
63 assertEquals("PayloadY", parameters.getPayloadY());
67 public void testPayloadYtype() {
68 parameters.setPayloadYtype("PayloadYtype");
69 assertEquals("PayloadYtype", parameters.getPayloadYtype());
73 public void testCompareDataType() {
74 parameters.setCompareDataType("CompareDataType");
75 assertEquals("CompareDataType", parameters.getCompareDataType());
79 public void testCompareType() {
80 parameters.setCompareType("CompareType");
81 assertEquals("CompareType", parameters.getCompareType());
85 public void testRequestIdentifier() {
86 parameters.setRequestIdentifier("RequestIdentifier");
87 assertEquals("RequestIdentifier", parameters.getRequestIdentifier());