re base code
[sdc.git] / catalog-model / src / test / java / org / openecomp / sdc / be / model / CapabilityTypeDefinitionTest.java
1 package org.openecomp.sdc.be.model;
2
3 import org.junit.Test;
4 import org.openecomp.sdc.be.datatypes.elements.CapabilityTypeDataDefinition;
5
6 import java.util.Map;
7
8
9 public class CapabilityTypeDefinitionTest {
10
11         private CapabilityTypeDefinition createTestSubject() {
12                 return new CapabilityTypeDefinition();
13         }
14
15         @Test
16         public void testCtor() throws Exception {
17                 new CapabilityTypeDefinition(new CapabilityTypeDataDefinition());
18         }
19         
20         @Test
21         public void testGetDerivedFrom() throws Exception {
22                 CapabilityTypeDefinition testSubject;
23                 String result;
24
25                 // default test
26                 testSubject = createTestSubject();
27                 result = testSubject.getDerivedFrom();
28         }
29
30         
31         @Test
32         public void testSetDerivedFrom() throws Exception {
33                 CapabilityTypeDefinition testSubject;
34                 String derivedFrom = "";
35
36                 // default test
37                 testSubject = createTestSubject();
38                 testSubject.setDerivedFrom(derivedFrom);
39         }
40
41         
42         @Test
43         public void testGetProperties() throws Exception {
44                 CapabilityTypeDefinition testSubject;
45                 Map<String, PropertyDefinition> result;
46
47                 // default test
48                 testSubject = createTestSubject();
49                 result = testSubject.getProperties();
50         }
51
52         
53         @Test
54         public void testSetProperties() throws Exception {
55                 CapabilityTypeDefinition testSubject;
56                 Map<String, PropertyDefinition> properties = null;
57
58                 // default test
59                 testSubject = createTestSubject();
60                 testSubject.setProperties(properties);
61         }
62
63         
64         @Test
65         public void testToString() throws Exception {
66                 CapabilityTypeDefinition testSubject;
67                 String result;
68
69                 // default test
70                 testSubject = createTestSubject();
71                 result = testSubject.toString();
72         }
73 }