re base code
[sdc.git] / asdctool / src / test / java / org / openecomp / sdc / asdctool / migration / config / mocks / DistributionEngineMockTest.java
1 package org.openecomp.sdc.asdctool.migration.config.mocks;
2
3 import org.junit.Ignore;
4 import org.junit.Test;
5 import org.openecomp.sdc.be.components.distribution.engine.INotificationData;
6 import org.openecomp.sdc.be.dao.api.ActionStatus;
7 import org.openecomp.sdc.be.model.Service;
8 import org.openecomp.sdc.be.model.User;
9 import org.openecomp.sdc.be.model.operations.api.StorageOperationStatus;
10 import org.openecomp.sdc.be.resources.data.OperationalEnvironmentEntry;
11
12 @Ignore ("This class does not test anything, there is not a single assertion and the code with reflection fails")  
13 public class DistributionEngineMockTest {
14
15         private DistributionEngineMock createTestSubject() {
16                 return new DistributionEngineMock();
17         }
18
19         @Test
20         public void testIsActive() throws Exception {
21                 DistributionEngineMock testSubject;
22                 boolean result;
23
24                 // default test
25                 testSubject = createTestSubject();
26                 result = testSubject.isActive();
27         }
28
29         @Test
30         public void testNotifyService() throws Exception {
31                 DistributionEngineMock testSubject;
32                 String distributionId = "";
33                 Service service = null;
34                 INotificationData notificationData = null;
35                 String envName = "";
36                 String userId = "";
37                 ActionStatus result;
38                 User modifierName=new User();
39
40                 // default test
41                 testSubject = createTestSubject();
42                 result = testSubject.notifyService(distributionId, service, notificationData, envName, userId, modifierName);
43         }
44
45         @Test
46         public void testNotifyService_1() throws Exception {
47                 DistributionEngineMock testSubject;
48                 String distributionId = "";
49                 Service service = null;
50                 INotificationData notificationData = null;
51                 String envId = "";
52                 String envName = "";
53                 String userId = "";
54                 User modifierName = new User();
55                 ActionStatus result;
56
57                 // default test
58                 testSubject = createTestSubject();
59                 result = testSubject.notifyService(distributionId, service, notificationData, envId, envName,
60                                 modifierName);
61         }
62
63         @Test
64         public void testIsEnvironmentAvailable() throws Exception {
65                 DistributionEngineMock testSubject;
66                 String envName = "";
67                 StorageOperationStatus result;
68
69                 // default test
70                 testSubject = createTestSubject();
71                 result = testSubject.isEnvironmentAvailable(envName);
72         }
73
74         @Test
75         public void testIsEnvironmentAvailable_1() throws Exception {
76                 DistributionEngineMock testSubject;
77                 StorageOperationStatus result;
78
79                 // default test
80                 testSubject = createTestSubject();
81                 result = testSubject.isEnvironmentAvailable();
82         }
83
84         @Test
85         public void testDisableEnvironment() throws Exception {
86                 DistributionEngineMock testSubject;
87                 String envName = "";
88
89                 // default test
90                 testSubject = createTestSubject();
91                 testSubject.disableEnvironment(envName);
92         }
93
94         @Ignore
95         @Test
96         public void testIsReadyForDistribution() throws Exception {
97                 DistributionEngineMock testSubject;
98                 Service service = null;
99                 String envName = "";
100                 StorageOperationStatus result;
101
102                 // default test
103                 testSubject = createTestSubject();
104                 result = testSubject.isReadyForDistribution(envName);
105         }
106
107         @Test
108         public void testBuildServiceForDistribution() throws Exception {
109                 DistributionEngineMock testSubject;
110                 Service service = null;
111                 String distributionId = "";
112                 String workloadContext = "";
113                 INotificationData result;
114
115                 // default test
116                 testSubject = createTestSubject();
117                 result = testSubject.buildServiceForDistribution(service, distributionId, workloadContext);
118         }
119
120         @Test
121         public void testGetEnvironmentById() throws Exception {
122                 DistributionEngineMock testSubject;
123                 String opEnvId = "";
124                 OperationalEnvironmentEntry result;
125
126                 // default test
127                 testSubject = createTestSubject();
128                 result = testSubject.getEnvironmentById(opEnvId);
129         }
130 }