blob: b358eb89577be6a7cdae0520428aace571c24f99 [file] [log] [blame]
Aharoni, Pavel (pa0916)ca3cb012018-10-22 15:29:57 +03001/*-
2 * ============LICENSE_START=======================================================
3 * OSAM
4 * ================================================================================
5 * Copyright (C) 2018 AT&T
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
22
23package org.onap.osam.aai;
24
25import org.junit.Test;
26import org.onap.osam.aai.model.RelationshipList;
27
28public class OperationalEnvironmentTest {
29
30 private OperationalEnvironment createTestSubject() {
31 return new OperationalEnvironment();
32 }
33
34 @Test
35 public void testGetOperationalEnvironmentId() throws Exception {
36 OperationalEnvironment testSubject;
37 String result;
38
39 // default test
40 testSubject = createTestSubject();
41 result = testSubject.getOperationalEnvironmentId();
42 }
43
44 @Test
45 public void testSetOperationalEnvironmentId() throws Exception {
46 OperationalEnvironment testSubject;
47 String operationalEnvironmentId = "";
48
49 // default test
50 testSubject = createTestSubject();
51 testSubject.setOperationalEnvironmentId(operationalEnvironmentId);
52 }
53
54 @Test
55 public void testGetOperationalEnvironmentName() throws Exception {
56 OperationalEnvironment testSubject;
57 String result;
58
59 // default test
60 testSubject = createTestSubject();
61 result = testSubject.getOperationalEnvironmentName();
62 }
63
64 @Test
65 public void testSetOperationalEnvironmentName() throws Exception {
66 OperationalEnvironment testSubject;
67 String operationalEnvironmentName = "";
68
69 // default test
70 testSubject = createTestSubject();
71 testSubject.setOperationalEnvironmentName(operationalEnvironmentName);
72 }
73
74 @Test
75 public void testGetOperationalEnvironmentType() throws Exception {
76 OperationalEnvironment testSubject;
77 String result;
78
79 // default test
80 testSubject = createTestSubject();
81 result = testSubject.getOperationalEnvironmentType();
82 }
83
84 @Test
85 public void testSetOperationalEnvironmentType() throws Exception {
86 OperationalEnvironment testSubject;
87 String operationalEnvironmentType = "";
88
89 // default test
90 testSubject = createTestSubject();
91 testSubject.setOperationalEnvironmentType(operationalEnvironmentType);
92 }
93
94 @Test
95 public void testGetOperationalEnvironmentStatus() throws Exception {
96 OperationalEnvironment testSubject;
97 String result;
98
99 // default test
100 testSubject = createTestSubject();
101 result = testSubject.getOperationalEnvironmentStatus();
102 }
103
104 @Test
105 public void testSetOperationalEnvironmentStatus() throws Exception {
106 OperationalEnvironment testSubject;
107 String operationalEnvironmentStatus = "";
108
109 // default test
110 testSubject = createTestSubject();
111 testSubject.setOperationalEnvironmentStatus(operationalEnvironmentStatus);
112 }
113
114 @Test
115 public void testGetTenantContext() throws Exception {
116 OperationalEnvironment testSubject;
117 String result;
118
119 // default test
120 testSubject = createTestSubject();
121 result = testSubject.getTenantContext();
122 }
123
124 @Test
125 public void testSetTenantContext() throws Exception {
126 OperationalEnvironment testSubject;
127 String tenantContext = "";
128
129 // default test
130 testSubject = createTestSubject();
131 testSubject.setTenantContext(tenantContext);
132 }
133
134 @Test
135 public void testGetWorkloadContext() throws Exception {
136 OperationalEnvironment testSubject;
137 String result;
138
139 // default test
140 testSubject = createTestSubject();
141 result = testSubject.getWorkloadContext();
142 }
143
144 @Test
145 public void testSetWorkloadContext() throws Exception {
146 OperationalEnvironment testSubject;
147 String workloadContext = "";
148
149 // default test
150 testSubject = createTestSubject();
151 testSubject.setWorkloadContext(workloadContext);
152 }
153
154 @Test
155 public void testGetResourceVersion() throws Exception {
156 OperationalEnvironment testSubject;
157 String result;
158
159 // default test
160 testSubject = createTestSubject();
161 result = testSubject.getResourceVersion();
162 }
163
164 @Test
165 public void testSetResourceVersion() throws Exception {
166 OperationalEnvironment testSubject;
167 String resourceVersion = "";
168
169 // default test
170 testSubject = createTestSubject();
171 testSubject.setResourceVersion(resourceVersion);
172 }
173
174 @Test
175 public void testGetRelationshipList() throws Exception {
176 OperationalEnvironment testSubject;
177 RelationshipList result;
178
179 // default test
180 testSubject = createTestSubject();
181 result = testSubject.getRelationshipList();
182 }
183
184 @Test
185 public void testSetRelationshipList() throws Exception {
186 OperationalEnvironment testSubject;
187 RelationshipList relationshipList = null;
188
189 // default test
190 testSubject = createTestSubject();
191 testSubject.setRelationshipList(relationshipList);
192 }
193
194 @Test
195 public void testOperationalEnvironment() throws Exception {
196 OperationalEnvironment testSubject;
197 String operationalEnvironmentId = "";
198 String operationalEnvironmentName = "";
199 String operationalEnvironmentType = "";
200 String operationalEnvironmentStatus = "";
201 String tenantContext = "";
202 String workloadContext = "";
203 String resourceVersion = "";
204 RelationshipList relationshipList = null;
205
206 // default test
207 testSubject = new OperationalEnvironment(operationalEnvironmentId, operationalEnvironmentName,
208 operationalEnvironmentType, operationalEnvironmentStatus, tenantContext, workloadContext,
209 resourceVersion, relationshipList);
210 }
211}