diff options
Diffstat (limited to 'catalog-be/src/test/java/org/openecomp/sdc/be/tosca/PropertyConvertorTest.java')
-rw-r--r-- | catalog-be/src/test/java/org/openecomp/sdc/be/tosca/PropertyConvertorTest.java | 25 |
1 files changed, 8 insertions, 17 deletions
diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/PropertyConvertorTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/PropertyConvertorTest.java index 18e2ec9fa0..a06ba84b4e 100644 --- a/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/PropertyConvertorTest.java +++ b/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/PropertyConvertorTest.java @@ -1,18 +1,6 @@ package org.openecomp.sdc.be.tosca; -import static org.assertj.core.api.Assertions.assertThat; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNotNull; -import static org.junit.Assert.assertNull; -import static org.junit.Assert.assertTrue; - -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashMap; -import java.util.Iterator; -import java.util.List; -import java.util.Map; - +import fj.data.Either; import org.junit.Before; import org.junit.Test; import org.openecomp.sdc.be.components.utils.PropertyDataDefinitionBuilder; @@ -24,7 +12,10 @@ import org.openecomp.sdc.be.model.tosca.ToscaPropertyType; import org.openecomp.sdc.be.tosca.model.ToscaNodeType; import org.openecomp.sdc.be.tosca.model.ToscaProperty; -import fj.data.Either; +import java.util.*; + +import static org.assertj.core.api.Assertions.assertThat; +import static org.junit.Assert.*; public class PropertyConvertorTest { private PropertyDefinition property; @@ -156,14 +147,14 @@ public class PropertyConvertorTest { public void testConvertToToscaObject() { dataTypes.put(ToscaPropertyType.Root.getType(), new DataTypeDefinition()); - PropertyConvertor.getInstance().convertToToscaObject(ToscaPropertyType.Root.getType(), "", "innerType", dataTypes); + PropertyConvertor.getInstance().convertToToscaObject(ToscaPropertyType.Root.getType(), "", "innerType", dataTypes,true); } @Test public void testConvertToToscaObjectWhenPropertyTypeAndInnerTypeNull() { dataTypes.put(ToscaPropertyType.Root.getType(), new DataTypeDefinition()); - PropertyConvertor.getInstance().convertToToscaObject(null, "value", null, dataTypes); + PropertyConvertor.getInstance().convertToToscaObject(null, "value", null, dataTypes,true); } @Test @@ -172,7 +163,7 @@ public class PropertyConvertorTest { def.setName("integer"); dataTypes.put("type", def); - PropertyConvertor.getInstance().convertToToscaObject("type", "value", "innerType", dataTypes); + PropertyConvertor.getInstance().convertToToscaObject("type", "value", "innerType", dataTypes,true); } } |