Added oparent to sdc main
[sdc.git] / asdctool / src / test / java / org / openecomp / sdc / asdctool / migration / config / mocks / DistributionEngineMockTest.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.asdctool.migration.config.mocks;
22
23 import org.junit.Ignore;
24 import org.junit.Test;
25 import org.openecomp.sdc.be.components.distribution.engine.INotificationData;
26 import org.openecomp.sdc.be.dao.api.ActionStatus;
27 import org.openecomp.sdc.be.model.Service;
28 import org.openecomp.sdc.be.model.User;
29 import org.openecomp.sdc.be.model.operations.api.StorageOperationStatus;
30 import org.openecomp.sdc.be.resources.data.OperationalEnvironmentEntry;
31
32 @Ignore ("This class does not test anything, there is not a single assertion and the code with reflection fails")  
33 public class DistributionEngineMockTest {
34
35         private DistributionEngineMock createTestSubject() {
36                 return new DistributionEngineMock();
37         }
38
39         @Test
40         public void testIsActive() throws Exception {
41                 DistributionEngineMock testSubject;
42                 boolean result;
43
44                 // default test
45                 testSubject = createTestSubject();
46                 result = testSubject.isActive();
47         }
48
49         @Test
50         public void testNotifyService() throws Exception {
51                 DistributionEngineMock testSubject;
52                 String distributionId = "";
53                 Service service = null;
54                 INotificationData notificationData = null;
55                 String envName = "";
56                 String userId = "";
57                 ActionStatus result;
58                 User modifierName=new User();
59
60                 // default test
61                 testSubject = createTestSubject();
62                 result = testSubject.notifyService(distributionId, service, notificationData, envName, userId, modifierName);
63         }
64
65         @Test
66         public void testNotifyService_1() throws Exception {
67                 DistributionEngineMock testSubject;
68                 String distributionId = "";
69                 Service service = null;
70                 INotificationData notificationData = null;
71                 String envId = "";
72                 String envName = "";
73                 String userId = "";
74                 User modifierName = new User();
75                 ActionStatus result;
76
77                 // default test
78                 testSubject = createTestSubject();
79                 result = testSubject.notifyService(distributionId, service, notificationData, envId, envName,
80                                 modifierName);
81         }
82
83         @Test
84         public void testIsEnvironmentAvailable() throws Exception {
85                 DistributionEngineMock testSubject;
86                 String envName = "";
87                 StorageOperationStatus result;
88
89                 // default test
90                 testSubject = createTestSubject();
91                 result = testSubject.isEnvironmentAvailable(envName);
92         }
93
94         @Test
95         public void testIsEnvironmentAvailable_1() throws Exception {
96                 DistributionEngineMock testSubject;
97                 StorageOperationStatus result;
98
99                 // default test
100                 testSubject = createTestSubject();
101                 result = testSubject.isEnvironmentAvailable();
102         }
103
104         @Test
105         public void testDisableEnvironment() throws Exception {
106                 DistributionEngineMock testSubject;
107                 String envName = "";
108
109                 // default test
110                 testSubject = createTestSubject();
111                 testSubject.disableEnvironment(envName);
112         }
113
114         @Ignore
115         @Test
116         public void testIsReadyForDistribution() throws Exception {
117                 DistributionEngineMock testSubject;
118                 Service service = null;
119                 String envName = "";
120                 StorageOperationStatus result;
121
122                 // default test
123                 testSubject = createTestSubject();
124                 result = testSubject.isReadyForDistribution(envName);
125         }
126
127         @Test
128         public void testBuildServiceForDistribution() throws Exception {
129                 DistributionEngineMock testSubject;
130                 Service service = null;
131                 String distributionId = "";
132                 String workloadContext = "";
133                 INotificationData result;
134
135                 // default test
136                 testSubject = createTestSubject();
137                 result = testSubject.buildServiceForDistribution(service, distributionId, workloadContext);
138         }
139
140         @Test
141         public void testGetEnvironmentById() throws Exception {
142                 DistributionEngineMock testSubject;
143                 String opEnvId = "";
144                 OperationalEnvironmentEntry result;
145
146                 // default test
147                 testSubject = createTestSubject();
148                 result = testSubject.getEnvironmentById(opEnvId);
149         }
150 }