733eb0c53742f1efa60883d00da69c0651e09306
[appc.git] / appc-config / appc-config-audit / provider / src / test / java / org / onap / sdnc / config / audit / node / TestParameters.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP : APPC
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
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  * 
19  * ============LICENSE_END=========================================================
20  */
21
22 package org.onap.sdnc.config.audit.node;
23
24 import static org.junit.Assert.assertEquals;
25
26 import java.util.HashMap;
27 import java.util.Map;
28
29 import org.junit.Before;
30 import org.junit.Test;
31
32 public class TestParameters {
33     private Parameters parameters;
34
35     @Before
36     public void setUp() {
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);
46     }
47
48     @Test
49     public void testPayloadX() {
50         parameters.setPayloadX("PayloadX");
51         assertEquals("PayloadX", parameters.getPayloadX());
52     }
53
54     @Test
55     public void testPayloadXtype() {
56         parameters.setPayloadXtype("PayloadXtype");
57         assertEquals("PayloadXtype", parameters.getPayloadXtype());
58     }
59
60     @Test
61     public void testPayloadY() {
62         parameters.setPayloadY("PayloadY");
63         assertEquals("PayloadY", parameters.getPayloadY());
64     }
65
66     @Test
67     public void testPayloadYtype() {
68         parameters.setPayloadYtype("PayloadYtype");
69         assertEquals("PayloadYtype", parameters.getPayloadYtype());
70     }
71
72     @Test
73     public void testCompareDataType() {
74         parameters.setCompareDataType("CompareDataType");
75         assertEquals("CompareDataType", parameters.getCompareDataType());
76     }
77
78     @Test
79     public void testCompareType() {
80         parameters.setCompareType("CompareType");
81         assertEquals("CompareType", parameters.getCompareType());
82     }
83     
84     @Test
85     public void testRequestIdentifier() {
86         parameters.setRequestIdentifier("RequestIdentifier");
87         assertEquals("RequestIdentifier", parameters.getRequestIdentifier());
88     }
89
90 }