0c1f3a7513b6fd772310a0f7228e1e98ebcf2f11
[sdc.git] /
1 package org.openecomp.sdc.be.components.distribution.engine;
2
3 import org.junit.Test;
4 import org.openecomp.sdc.be.model.ComponentInstance;
5 import org.openecomp.sdc.be.model.Service;
6 import org.openecomp.sdc.be.model.operations.impl.InterfaceLifecycleOperation;
7
8 public class ServiceDistributionArtifactsBuilderTest {
9
10         private ServiceDistributionArtifactsBuilder createTestSubject() {
11                 return new ServiceDistributionArtifactsBuilder();
12         }
13
14         
15         @Test
16         public void testBuildResourceInstanceArtifactUrl() throws Exception {
17                 Service service = new Service();
18                 ComponentInstance resourceInstance = new ComponentInstance();
19                 String artifactName = "";
20                 String result;
21
22                 // default test
23                 result = ServiceDistributionArtifactsBuilder.buildResourceInstanceArtifactUrl(service, resourceInstance,
24                                 artifactName);
25         }
26
27         
28         
29         
30         @Test
31         public void testBuildServiceArtifactUrl() throws Exception {
32                 Service service = new Service();;
33                 String artifactName = "";
34                 String result;
35
36                 // default test
37                 result = ServiceDistributionArtifactsBuilder.buildServiceArtifactUrl(service, artifactName);
38         }
39
40         
41
42
43         
44         @Test
45         public void testGetInterfaceLifecycleOperation() throws Exception {
46                 ServiceDistributionArtifactsBuilder testSubject;
47                 InterfaceLifecycleOperation result;
48
49                 // default test
50                 testSubject = createTestSubject();
51                 result = testSubject.getInterfaceLifecycleOperation();
52         }
53
54         
55         @Test
56         public void testSetInterfaceLifecycleOperation() throws Exception {
57                 ServiceDistributionArtifactsBuilder testSubject;
58                 InterfaceLifecycleOperation interfaceLifecycleOperation = null;
59
60                 // default test
61                 testSubject = createTestSubject();
62                 testSubject.setInterfaceLifecycleOperation(interfaceLifecycleOperation);
63         }
64
65         
66         @Test
67         public void testVerifyServiceContainsDeploymentArtifacts() throws Exception {
68                 ServiceDistributionArtifactsBuilder testSubject;
69                 Service service = new Service();;
70                 boolean result;
71
72                 // default test
73                 testSubject = createTestSubject();
74                 result = testSubject.verifyServiceContainsDeploymentArtifacts(service);
75         }
76 }