1 package org.openecomp.sdc.be.tosca;
5 import javax.annotation.Generated;
8 import org.openecomp.sdc.be.model.Component;
9 import org.openecomp.sdc.be.model.DataTypeDefinition;
10 import org.openecomp.sdc.be.model.PropertyDefinition;
11 import org.openecomp.sdc.be.tosca.model.ToscaNodeType;
12 import org.openecomp.sdc.be.tosca.model.ToscaProperty;
14 import fj.data.Either;
16 public class PropertyConvertorTest {
18 private PropertyConvertor createTestSubject() {
19 return new PropertyConvertor();
24 public void testGetInstance() throws Exception {
25 PropertyConvertor result;
28 result = PropertyConvertor.getInstance();
33 public void testConvertProperties() throws Exception {
34 PropertyConvertor testSubject;
35 Component component = null;
36 ToscaNodeType toscaNodeType = null;
37 Map<String, DataTypeDefinition> dataTypes = null;
38 Either<ToscaNodeType, ToscaError> result;
41 testSubject = createTestSubject();
42 result = testSubject.convertProperties(component, toscaNodeType, dataTypes);
47 public void testConvertProperty() throws Exception {
48 PropertyConvertor testSubject;
49 Map<String, DataTypeDefinition> dataTypes = null;
50 PropertyDefinition property = null;
51 boolean isCapabiltyProperty = false;
55 testSubject = createTestSubject();
60 public void testConvertToToscaObject() throws Exception {
61 PropertyConvertor testSubject;
62 String propertyType = "";
64 String innerType = "";
65 Map<String, DataTypeDefinition> dataTypes = null;
69 testSubject = createTestSubject();