From 1653c7e2ad69abf94f8738ed94c233860da22c56 Mon Sep 17 00:00:00 2001 From: JvD_Ericsson Date: Tue, 31 Jan 2023 13:25:38 +0000 Subject: Revert and fix temporary fix of SDC-4352 Revert https://gerrit.onap.org/r/c/sdc/+/133049 and fix initial issue described by SDC-4352 Fix floats not being imported correctly Fix not being able to use equal constraint with bool type Issue-ID: SDC-4352 Signed-off-by: JvD_Ericsson Change-Id: I90641838aa40bea211f57f47fe65d09bf0573453 --- .../test/java/org/openecomp/sdc/be/impl/ComponentsUtilsTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'catalog-be/src/test/java') diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/impl/ComponentsUtilsTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/impl/ComponentsUtilsTest.java index 310f4792c1..dae9ec8acb 100644 --- a/catalog-be/src/test/java/org/openecomp/sdc/be/impl/ComponentsUtilsTest.java +++ b/catalog-be/src/test/java/org/openecomp/sdc/be/impl/ComponentsUtilsTest.java @@ -774,9 +774,9 @@ class ComponentsUtilsTest { ComponentInstanceProperty[] properties = response.left().value(); assertEquals(9, properties.length); assertEquals("value", ((EqualConstraint) properties[0].getConstraints().iterator().next()).getEqual()); - assertEquals("5", ((GreaterOrEqualConstraint) properties[1].getConstraints().iterator().next()).getGreaterOrEqual()); - assertEquals("7", ((LessThanConstraint) properties[2].getConstraints().iterator().next()).getLessThan()); - assertEquals("9", ((LessOrEqualConstraint) properties[3].getConstraints().iterator().next()).getLessOrEqual()); + assertEquals(5, ((GreaterOrEqualConstraint) properties[1].getConstraints().iterator().next()).getGreaterOrEqual()); + assertEquals(7, ((LessThanConstraint) properties[2].getConstraints().iterator().next()).getLessThan()); + assertEquals(9, ((LessOrEqualConstraint) properties[3].getConstraints().iterator().next()).getLessOrEqual()); assertEquals("5", ((InRangeConstraint) properties[4].getConstraints().iterator().next()).getMin().toString()); assertEquals("10", ((InRangeConstraint) properties[4].getConstraints().iterator().next()).getMax().toString()); assertEquals(3, ((ValidValuesConstraint) properties[5].getConstraints().iterator().next()).getValidValues().size()); -- cgit 1.2.3-korg