Added oparent to sdc main
[sdc.git] / catalog-be / src / test / java / org / openecomp / sdc / be / components / merge / property / MergePropertyDataTest.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * SDC
4  * ================================================================================
5  * Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
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
21 package org.openecomp.sdc.be.components.merge.property;
22
23 import org.junit.Test;
24 import org.openecomp.sdc.be.datatypes.elements.PropertyDataDefinition;
25
26 import java.util.LinkedList;
27 import java.util.List;
28
29 public class MergePropertyDataTest {
30
31         private MergePropertyData createTestSubject() {
32                 return new MergePropertyData();
33         }
34
35         @Test
36         public void testGetOldProp() throws Exception {
37                 MergePropertyData testSubject;
38                 PropertyDataDefinition result;
39
40                 // default test
41                 testSubject = createTestSubject();
42                 result = testSubject.getOldProp();
43         }
44
45         @Test
46         public void testSetOldProp() throws Exception {
47                 MergePropertyData testSubject;
48                 PropertyDataDefinition oldProp = null;
49                 MergePropertyData result;
50
51                 // default test
52                 testSubject = createTestSubject();
53                 result = testSubject.setOldProp(oldProp);
54         }
55
56         @Test
57         public void testSetNewProp() throws Exception {
58                 MergePropertyData testSubject;
59                 PropertyDataDefinition newProp = null;
60                 MergePropertyData result;
61
62                 // default test
63                 testSubject = createTestSubject();
64                 result = testSubject.setNewProp(newProp);
65         }
66
67         @Test
68         public void testGetNewProp() throws Exception {
69                 MergePropertyData testSubject;
70                 PropertyDataDefinition result;
71
72                 // default test
73                 testSubject = createTestSubject();
74                 result = testSubject.getNewProp();
75         }
76
77         @Test
78         public void testAddAddGetInputNamesToMerge() throws Exception {
79                 MergePropertyData testSubject;
80                 List<String> getInputsNameToMerge = new LinkedList<>();
81
82                 // default test
83                 testSubject = createTestSubject();
84                 testSubject.addAddGetInputNamesToMerge(getInputsNameToMerge);
85         }
86
87         @Test
88         public void testGetGetInputNamesToMerge() throws Exception {
89                 MergePropertyData testSubject;
90                 List<String> result;
91
92                 // default test
93                 testSubject = createTestSubject();
94                 result = testSubject.getGetInputNamesToMerge();
95         }
96
97         @Test
98         public void testIsGetInputProp() throws Exception {
99                 MergePropertyData testSubject;
100                 boolean result;
101
102                 // default test
103                 testSubject = createTestSubject();
104                 testSubject.setOldProp(new PropertyDataDefinition());
105                 result = testSubject.isGetInputProp();
106         }
107 }