Added oparent to sdc main
[sdc.git] / catalog-model / src / test / java / org / openecomp / sdc / be / model / ProductTest.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.model;
22
23 import org.junit.Test;
24
25 import java.util.List;
26
27
28 public class ProductTest {
29
30         private Product createTestSubject() {
31                 return new Product();
32         }
33
34         @Test
35         public void testCtor() throws Exception {
36                 new Product(new ProductMetadataDefinition());
37         }
38         
39         @Test
40         public void testGetFullName() throws Exception {
41                 Product testSubject;
42                 String result;
43
44                 // default test
45                 testSubject = createTestSubject();
46                 result = testSubject.getFullName();
47         }
48
49         
50         @Test
51         public void testSetFullName() throws Exception {
52                 Product testSubject;
53                 String fullName = "";
54
55                 // default test
56                 testSubject = createTestSubject();
57                 testSubject.setFullName(fullName);
58         }
59
60         
61         @Test
62         public void testGetInvariantUUID() throws Exception {
63                 Product testSubject;
64                 String result;
65
66                 // default test
67                 testSubject = createTestSubject();
68                 result = testSubject.getInvariantUUID();
69         }
70
71         
72         @Test
73         public void testSetInvariantUUID() throws Exception {
74                 Product testSubject;
75                 String invariantUUID = "";
76
77                 // default test
78                 testSubject = createTestSubject();
79                 testSubject.setInvariantUUID(invariantUUID);
80         }
81
82         
83         @Test
84         public void testGetContacts() throws Exception {
85                 Product testSubject;
86                 List<String> result;
87
88                 // default test
89                 testSubject = createTestSubject();
90                 result = testSubject.getContacts();
91         }
92
93         
94         @Test
95         public void testSetContacts() throws Exception {
96                 Product testSubject;
97                 List<String> contacts = null;
98
99                 // default test
100                 testSubject = createTestSubject();
101                 testSubject.setContacts(contacts);
102         }
103
104         
105         @Test
106         public void testAddContact() throws Exception {
107                 Product testSubject;
108                 String contact = "";
109
110                 // default test
111                 testSubject = createTestSubject();
112                 testSubject.addContact(contact);
113         }
114
115         
116         @Test
117         public void testGetIsActive() throws Exception {
118                 Product testSubject;
119                 Boolean result;
120
121                 // default test
122                 testSubject = createTestSubject();
123                 result = testSubject.getIsActive();
124         }
125
126         
127         @Test
128         public void testSetIsActive() throws Exception {
129                 Product testSubject;
130                 Boolean isActive = null;
131
132                 // default test
133                 testSubject = createTestSubject();
134                 testSubject.setIsActive(isActive);
135         }
136
137         
138
139 }