diff options
Diffstat (limited to 'catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/constraints/ConstraintUtilTest.java')
-rw-r--r-- | catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/constraints/ConstraintUtilTest.java | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/constraints/ConstraintUtilTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/constraints/ConstraintUtilTest.java new file mode 100644 index 0000000000..877c7c40eb --- /dev/null +++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/constraints/ConstraintUtilTest.java @@ -0,0 +1,41 @@ +package org.openecomp.sdc.be.model.tosca.constraints; + +import javax.annotation.Generated; + +import org.junit.Test; +import org.openecomp.sdc.be.model.tosca.ToscaType; +import org.openecomp.sdc.be.model.tosca.constraints.ConstraintUtil.ConstraintInformation; + +public class ConstraintUtilTest { + + @Test + public void testCheckStringType() throws Exception { + ToscaType propertyType = ToscaType.STRING; + + // default test + ConstraintUtil.checkStringType(propertyType); + } + + + @Test + public void testCheckComparableType() throws Exception { + ToscaType propertyType = ToscaType.INTEGER; + + // default test + ConstraintUtil.checkComparableType(propertyType); + } + + + @Test + public void testConvertToComparable() throws Exception { + ToscaType propertyType = ToscaType.BOOLEAN; + String value = ""; + Comparable result; + + // default test + result = ConstraintUtil.convertToComparable(propertyType, value); + } + + + +}
\ No newline at end of file |