c3a127c8ffd54c893c8e37700a0d40e62e36d82a
[sdc.git] /
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.datatypes.elements;
22
23 import org.junit.Test;
24
25 import java.util.List;
26
27
28 public class ProductMetadataDataDefinitionTest {
29
30         private ProductMetadataDataDefinition createTestSubject() {
31                 return new ProductMetadataDataDefinition();
32         }
33
34         @Test
35         public void testAddContact() throws Exception {
36                 ProductMetadataDataDefinition testSubject;
37                 String contact = "";
38
39                 // test 1
40                 testSubject = createTestSubject();
41                 contact = null;
42                 testSubject.addContact(contact);
43
44                 // test 2
45                 testSubject = createTestSubject();
46                 contact = "";
47                 testSubject.addContact(contact);
48         }
49
50         @Test
51         public void testGetActualComponentType() throws Exception {
52                 ProductMetadataDataDefinition testSubject;
53                 Object obj = null;
54                 String result;
55
56                 // default test
57                 testSubject = createTestSubject();
58                 result = testSubject.getActualComponentType();
59         }
60 }