1 package org.onap.vid.aai;
4 import org.onap.vid.aai.model.RelationshipList;
6 import org.junit.Assert;
8 public class OperationalEnvironmentTest {
10 private OperationalEnvironment createTestSubject() {
11 return new OperationalEnvironment();
15 public void testGetOperationalEnvironmentId() throws Exception {
16 OperationalEnvironment testSubject;
20 testSubject = createTestSubject();
21 result = testSubject.getOperationalEnvironmentId();
25 public void testSetOperationalEnvironmentId() throws Exception {
26 OperationalEnvironment testSubject;
27 String operationalEnvironmentId = "";
30 testSubject = createTestSubject();
31 testSubject.setOperationalEnvironmentId(operationalEnvironmentId);
35 public void testGetOperationalEnvironmentName() throws Exception {
36 OperationalEnvironment testSubject;
40 testSubject = createTestSubject();
41 result = testSubject.getOperationalEnvironmentName();
45 public void testSetOperationalEnvironmentName() throws Exception {
46 OperationalEnvironment testSubject;
47 String operationalEnvironmentName = "";
50 testSubject = createTestSubject();
51 testSubject.setOperationalEnvironmentName(operationalEnvironmentName);
55 public void testGetOperationalEnvironmentType() throws Exception {
56 OperationalEnvironment testSubject;
60 testSubject = createTestSubject();
61 result = testSubject.getOperationalEnvironmentType();
65 public void testSetOperationalEnvironmentType() throws Exception {
66 OperationalEnvironment testSubject;
67 String operationalEnvironmentType = "";
70 testSubject = createTestSubject();
71 testSubject.setOperationalEnvironmentType(operationalEnvironmentType);
75 public void testGetOperationalEnvironmentStatus() throws Exception {
76 OperationalEnvironment testSubject;
80 testSubject = createTestSubject();
81 result = testSubject.getOperationalEnvironmentStatus();
85 public void testSetOperationalEnvironmentStatus() throws Exception {
86 OperationalEnvironment testSubject;
87 String operationalEnvironmentStatus = "";
90 testSubject = createTestSubject();
91 testSubject.setOperationalEnvironmentStatus(operationalEnvironmentStatus);
95 public void testGetTenantContext() throws Exception {
96 OperationalEnvironment testSubject;
100 testSubject = createTestSubject();
101 result = testSubject.getTenantContext();
105 public void testSetTenantContext() throws Exception {
106 OperationalEnvironment testSubject;
107 String tenantContext = "";
110 testSubject = createTestSubject();
111 testSubject.setTenantContext(tenantContext);
115 public void testGetWorkloadContext() throws Exception {
116 OperationalEnvironment testSubject;
120 testSubject = createTestSubject();
121 result = testSubject.getWorkloadContext();
125 public void testSetWorkloadContext() throws Exception {
126 OperationalEnvironment testSubject;
127 String workloadContext = "";
130 testSubject = createTestSubject();
131 testSubject.setWorkloadContext(workloadContext);
135 public void testGetResourceVersion() throws Exception {
136 OperationalEnvironment testSubject;
140 testSubject = createTestSubject();
141 result = testSubject.getResourceVersion();
145 public void testSetResourceVersion() throws Exception {
146 OperationalEnvironment testSubject;
147 String resourceVersion = "";
150 testSubject = createTestSubject();
151 testSubject.setResourceVersion(resourceVersion);
155 public void testGetRelationshipList() throws Exception {
156 OperationalEnvironment testSubject;
157 RelationshipList result;
160 testSubject = createTestSubject();
161 result = testSubject.getRelationshipList();
165 public void testSetRelationshipList() throws Exception {
166 OperationalEnvironment testSubject;
167 RelationshipList relationshipList = null;
170 testSubject = createTestSubject();
171 testSubject.setRelationshipList(relationshipList);
175 public void testOperationalEnvironment() throws Exception {
176 OperationalEnvironment testSubject;
177 String operationalEnvironmentId = "";
178 String operationalEnvironmentName = "";
179 String operationalEnvironmentType = "";
180 String operationalEnvironmentStatus = "";
181 String tenantContext = "";
182 String workloadContext = "";
183 String resourceVersion = "";
184 RelationshipList relationshipList = null;
187 testSubject = new OperationalEnvironment(operationalEnvironmentId, operationalEnvironmentName,
188 operationalEnvironmentType, operationalEnvironmentStatus, tenantContext, workloadContext,
189 resourceVersion, relationshipList);