Added oparent to sdc main
[sdc.git] / catalog-model / src / test / java / org / openecomp / sdc / be / ui / model / UiServiceMetadataTest.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.be.ui.model;
22
23 import org.junit.Test;
24 import org.openecomp.sdc.be.datatypes.components.ServiceMetadataDataDefinition;
25
26
27 public class UiServiceMetadataTest {
28
29         private UiServiceMetadata createTestSubject() {
30                 return new UiServiceMetadata(null, new ServiceMetadataDataDefinition());
31         }
32
33         
34         @Test
35         public void testGetDistributionStatus() throws Exception {
36                 UiServiceMetadata testSubject;
37                 String result;
38
39                 // default test
40                 testSubject = createTestSubject();
41                 result = testSubject.getDistributionStatus();
42         }
43
44         
45         @Test
46         public void testSetDistributionStatus() throws Exception {
47                 UiServiceMetadata testSubject;
48                 String distributionStatus = "";
49
50                 // default test
51                 testSubject = createTestSubject();
52                 testSubject.setDistributionStatus(distributionStatus);
53         }
54
55         
56         @Test
57         public void testGetEcompGeneratedNaming() throws Exception {
58                 UiServiceMetadata testSubject;
59                 Boolean result;
60
61                 // default test
62                 testSubject = createTestSubject();
63                 result = testSubject.getEcompGeneratedNaming();
64         }
65
66         
67         @Test
68         public void testSetEcompGeneratedNaming() throws Exception {
69                 UiServiceMetadata testSubject;
70                 Boolean ecompGeneratedNaming = null;
71
72                 // default test
73                 testSubject = createTestSubject();
74                 testSubject.setEcompGeneratedNaming(ecompGeneratedNaming);
75         }
76
77         
78         @Test
79         public void testGetNamingPolicy() throws Exception {
80                 UiServiceMetadata testSubject;
81                 String result;
82
83                 // default test
84                 testSubject = createTestSubject();
85                 result = testSubject.getNamingPolicy();
86         }
87
88         
89         @Test
90         public void testSetNamingPolicy() throws Exception {
91                 UiServiceMetadata testSubject;
92                 String namingPolicy = "";
93
94                 // default test
95                 testSubject = createTestSubject();
96                 testSubject.setNamingPolicy(namingPolicy);
97         }
98
99         
100         @Test
101         public void testGetServiceType() throws Exception {
102                 UiServiceMetadata testSubject;
103                 String result;
104
105                 // default test
106                 testSubject = createTestSubject();
107                 result = testSubject.getServiceType();
108         }
109
110         
111         @Test
112         public void testSetServiceType() throws Exception {
113                 UiServiceMetadata testSubject;
114                 String serviceType = "";
115
116                 // default test
117                 testSubject = createTestSubject();
118                 testSubject.setServiceType(serviceType);
119         }
120
121         
122         @Test
123         public void testGetServiceRole() throws Exception {
124                 UiServiceMetadata testSubject;
125                 String result;
126
127                 // default test
128                 testSubject = createTestSubject();
129                 result = testSubject.getServiceRole();
130         }
131
132         
133         @Test
134         public void testSetServiceRole() throws Exception {
135                 UiServiceMetadata testSubject;
136                 String serviceRole = "";
137
138                 // default test
139                 testSubject = createTestSubject();
140                 testSubject.setServiceRole(serviceRole);
141         }
142 }