Release version 1.13.7
[sdc.git] / catalog-be / src / test / java / org / openecomp / sdc / be / datamodel / NameIdPairTest.java
1 /*
2
3  * Copyright (c) 2018 AT&T Intellectual Property.
4
5  *
6
7  * Licensed under the Apache License, Version 2.0 (the "License");
8
9  * you may not use this file except in compliance with the License.
10
11  * You may obtain a copy of the License at
12
13  *
14
15  *     http://www.apache.org/licenses/LICENSE-2.0
16
17  *
18
19  * Unless required by applicable law or agreed to in writing, software
20
21  * distributed under the License is distributed on an "AS IS" BASIS,
22
23  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
24
25  * See the License for the specific language governing permissions and
26
27  * limitations under the License.
28
29  */
30
31 package org.openecomp.sdc.be.datamodel;
32
33 import org.junit.Test;
34
35 import java.util.Set;
36
37 public class NameIdPairTest {
38
39         private NameIdPair createTestSubject() {
40                 return new NameIdPair("", "");
41         }
42
43         @Test
44         public void testGetName() throws Exception {
45                 NameIdPair testSubject;
46                 String result;
47
48                 // default test
49                 testSubject = createTestSubject();
50                 result = testSubject.getName();
51         }
52
53         @Test
54         public void testConstructorWith3Parameters() throws Exception {
55                 NameIdPair testSubject;
56                 String result;
57
58                 // default test
59                 testSubject =  new NameIdPair("", "","");
60                 result = testSubject.getOwnerId();
61         }
62
63         @Test
64         public void testSetName() throws Exception {
65                 NameIdPair testSubject;
66                 String name = "";
67
68                 // default test
69                 testSubject = createTestSubject();
70                 testSubject.setName(name);
71         }
72
73         @Test
74         public void testGetId() throws Exception {
75                 NameIdPair testSubject;
76                 String result;
77
78                 // default test
79                 testSubject = createTestSubject();
80                 result = testSubject.getId();
81         }
82
83         @Test
84         public void testSetId() throws Exception {
85                 NameIdPair testSubject;
86                 String id = "";
87
88                 // default test
89                 testSubject = createTestSubject();
90                 testSubject.setId(id);
91         }
92
93         @Test
94         public void testGetOwnerId() throws Exception {
95                 NameIdPair testSubject;
96                 String result;
97
98                 // default test
99                 testSubject = createTestSubject();
100                 testSubject.put("ownerId", "mock");
101                 result = testSubject.getOwnerId();
102         }
103
104         @Test
105         public void testSetOwnerId() throws Exception {
106                 NameIdPair testSubject;
107                 String ownerId = "";
108
109                 // default test
110                 testSubject = createTestSubject();
111                 testSubject.setOwnerId(ownerId);
112         }
113
114         @Test
115         public void testGetWrappedData() throws Exception {
116                 NameIdPair testSubject;
117                 Set<NameIdPairWrapper> result;
118
119                 // default test
120                 testSubject = createTestSubject();
121                 result = testSubject.getWrappedData();
122         }
123
124         @Test
125         public void testSetWrappedData() throws Exception {
126                 NameIdPair testSubject;
127                 Set<NameIdPairWrapper> data = null;
128
129                 // default test
130                 testSubject = createTestSubject();
131                 testSubject.setWrappedData(data);
132         }
133
134         @Test
135         public void testAddWrappedData() throws Exception {
136                 NameIdPair testSubject;
137                 NameIdPairWrapper nameIdPairWrapper = null;
138
139                 // default test
140                 testSubject = createTestSubject();
141                 testSubject.addWrappedData(nameIdPairWrapper);
142         }
143
144         @Test
145         public void testEquals() throws Exception {
146                 NameIdPair testSubject;
147                 Object o = null;
148                 boolean result;
149
150                 // default test
151                 testSubject = createTestSubject();
152                 result = testSubject.equals(o);
153         }
154
155         @Test
156         public void testHashCode() throws Exception {
157                 NameIdPair testSubject;
158                 int result;
159
160                 // default test
161                 testSubject = createTestSubject();
162                 result = testSubject.hashCode();
163         }
164
165         @Test
166         public void testCreate() throws Exception {
167                 String name = "";
168                 String id = "";
169                 NameIdPair result;
170
171                 // default test
172                 result = NameIdPair.create(name, id);
173         }
174 }