1 package org.openecomp.sdc.be.model;
4 import org.openecomp.sdc.be.datatypes.elements.CapabilityTypeDataDefinition;
9 public class CapabilityTypeDefinitionTest {
11 private CapabilityTypeDefinition createTestSubject() {
12 return new CapabilityTypeDefinition();
16 public void testCtor() throws Exception {
17 new CapabilityTypeDefinition(new CapabilityTypeDataDefinition());
21 public void testGetDerivedFrom() throws Exception {
22 CapabilityTypeDefinition testSubject;
26 testSubject = createTestSubject();
27 result = testSubject.getDerivedFrom();
32 public void testSetDerivedFrom() throws Exception {
33 CapabilityTypeDefinition testSubject;
34 String derivedFrom = "";
37 testSubject = createTestSubject();
38 testSubject.setDerivedFrom(derivedFrom);
43 public void testGetProperties() throws Exception {
44 CapabilityTypeDefinition testSubject;
45 Map<String, PropertyDefinition> result;
48 testSubject = createTestSubject();
49 result = testSubject.getProperties();
54 public void testSetProperties() throws Exception {
55 CapabilityTypeDefinition testSubject;
56 Map<String, PropertyDefinition> properties = null;
59 testSubject = createTestSubject();
60 testSubject.setProperties(properties);
65 public void testToString() throws Exception {
66 CapabilityTypeDefinition testSubject;
70 testSubject = createTestSubject();
71 result = testSubject.toString();