Refactoring Consolidation Service
[sdc.git] / catalog-model / src / test / java / org / openecomp / sdc / be / model / tosca / ToscaTypeTest.java
1 package org.openecomp.sdc.be.model.tosca;
2
3 import org.junit.Assert;
4 import org.junit.Test;
5
6
7 public class ToscaTypeTest {
8
9         private ToscaType createTestSubject() {
10                 return  ToscaType.BOOLEAN;
11         }
12
13         
14         @Test
15         public void testFromYamlTypeName() throws Exception {
16                 String typeName = "";
17                 ToscaType result;
18
19                 // test 1
20                 typeName = null;
21                 result = ToscaType.fromYamlTypeName(typeName);
22                 Assert.assertEquals(null, result);
23
24                 // test 2
25                 typeName = "";
26                 result = ToscaType.fromYamlTypeName(typeName);
27                 Assert.assertEquals(null, result);
28         }
29
30         
31         @Test
32         public void testIsValidValue() throws Exception {
33                 ToscaType testSubject;
34                 String value = "";
35                 boolean result;
36
37                 // default test
38                 testSubject = createTestSubject();
39                 result = testSubject.isValidValue(value);
40         }
41
42
43         
44         @Test
45         public void testConvert() throws Exception {
46                 ToscaType testSubject;
47                 String value = "";
48                 Object result;
49
50                 // default test
51                 testSubject = createTestSubject();
52                 result = testSubject.convert(value);
53         }
54
55         
56         @Test
57         public void testToString() throws Exception {
58                 ToscaType testSubject;
59                 String result;
60
61                 // default test
62                 testSubject = createTestSubject();
63                 result = testSubject.toString();
64         }
65 }