org.onap migration
[vid.git] / vid-app-common / src / test / java / org / onap / vid / model / ServiceModelTest.java
1 package org.onap.vid.model;
2
3 import java.util.Map;
4
5 import org.junit.Test;
6 import org.onap.vid.asdc.beans.tosca.ToscaModel;
7 import org.onap.vid.model.Service;
8
9 public class ServiceModelTest {
10
11         private ServiceModel createTestSubject() {
12                 return new ServiceModel();
13         }
14
15         @Test
16         public void testGetService() throws Exception {
17                 ServiceModel testSubject;
18                 Service result;
19
20                 // default test
21                 testSubject = createTestSubject();
22                 result = testSubject.getService();
23         }
24
25         @Test
26         public void testGetVnfs() throws Exception {
27                 ServiceModel testSubject;
28                 Map<String, VNF> result;
29
30                 // default test
31                 testSubject = createTestSubject();
32                 result = testSubject.getVnfs();
33         }
34
35         @Test
36         public void testGetNetworks() throws Exception {
37                 ServiceModel testSubject;
38                 Map<String, Network> result;
39
40                 // default test
41                 testSubject = createTestSubject();
42                 result = testSubject.getNetworks();
43         }
44
45         @Test
46         public void testSetService() throws Exception {
47                 ServiceModel testSubject;
48                 Service service = null;
49
50                 // default test
51                 testSubject = createTestSubject();
52                 testSubject.setService(service);
53         }
54
55         @Test
56         public void testSetVnfs() throws Exception {
57                 ServiceModel testSubject;
58                 Map<String, VNF> vnfs = null;
59
60                 // default test
61                 testSubject = createTestSubject();
62                 testSubject.setVnfs(vnfs);
63         }
64
65         @Test
66         public void testSetNetworks() throws Exception {
67                 ServiceModel testSubject;
68                 Map<String, Network> networks = null;
69
70                 // default test
71                 testSubject = createTestSubject();
72                 testSubject.setNetworks(networks);
73         }
74
75         @Test
76         public void testGetVfModules() throws Exception {
77                 ServiceModel testSubject;
78                 Map<String, VfModule> result;
79
80                 // default test
81                 testSubject = createTestSubject();
82                 result = testSubject.getVfModules();
83         }
84
85         @Test
86         public void testGetVolumeGroups() throws Exception {
87                 ServiceModel testSubject;
88                 Map<String, VolumeGroup> result;
89
90                 // default test
91                 testSubject = createTestSubject();
92                 result = testSubject.getVolumeGroups();
93         }
94
95         @Test
96         public void testSetVfModules() throws Exception {
97                 ServiceModel testSubject;
98                 Map<String, VfModule> vfModules = null;
99
100                 // default test
101                 testSubject = createTestSubject();
102                 testSubject.setVfModules(vfModules);
103         }
104
105         @Test
106         public void testSetVolumeGroups() throws Exception {
107                 ServiceModel testSubject;
108                 Map<String, VolumeGroup> volumeGroups = null;
109
110                 // default test
111                 testSubject = createTestSubject();
112                 testSubject.setVolumeGroups(volumeGroups);
113         }
114
115         @Test
116         public void testAssociateGroups() throws Exception {
117                 ServiceModel testSubject;
118
119                 // default test
120                 testSubject = createTestSubject();
121                 testSubject.associateGroups();
122         }
123 }