Added oparent to sdc main
[sdc.git] / asdctool / src / test / java / org / openecomp / sdc / asdctool / impl / validator / utils / ElementTypeEnumTest.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.asdctool.impl.validator.utils;
22
23 import org.junit.Test;
24
25 import java.util.List;
26
27
28 public class ElementTypeEnumTest {
29
30         private ElementTypeEnum createTestSubject() {
31                 return  ElementTypeEnum.VF;
32                 }
33
34         
35         @Test
36         public void testGetByType() {
37                 String elementType = "";
38                 ElementTypeEnum result;
39
40                 // default test
41                 result = ElementTypeEnum.getByType(elementType);
42                 result = ElementTypeEnum.getByType(ElementTypeEnum.VF.getElementType());
43         }
44
45         
46         @Test
47         public void testGetAllTypes() {
48                 List<String> result;
49
50                 // default test
51                 result = ElementTypeEnum.getAllTypes();
52         }
53
54         
55         @Test
56         public void testGetElementType() {
57                 ElementTypeEnum testSubject;
58                 String result;
59
60                 // default test
61                 testSubject = createTestSubject();
62                 result = testSubject.getElementType();
63         }
64
65         
66         @Test
67         public void testSetElementType() {
68                 ElementTypeEnum testSubject;
69                 String elementType = "";
70
71                 // default test
72                 testSubject = createTestSubject();
73                 testSubject.setElementType(elementType);
74         }
75
76         
77         @Test
78         public void testGetClazz() {
79                 ElementTypeEnum testSubject;
80                 Class result;
81
82                 // default test
83                 testSubject = createTestSubject();
84                 result = testSubject.getClazz();
85         }
86
87         
88         @Test
89         public void testSetClazz() {
90                 ElementTypeEnum testSubject;
91                 Class clazz = null;
92
93                 // default test
94                 testSubject = createTestSubject();
95                 testSubject.setClazz(clazz);
96         }
97 }