From e61d26cb2a74813b526e10864af4d73f04df2650 Mon Sep 17 00:00:00 2001 From: vasraz Date: Wed, 1 Feb 2023 17:56:35 +0000 Subject: Fix 'in_range constraints missing from TOSCA template'-bug Signed-off-by: Vasyl Razinkov Change-Id: Icec2183849a8852621ec98f3ca1d94ac7c4dae31 Issue-ID: SDC-4357 --- .../src/test/java/org/openecomp/sdc/be/impl/ComponentsUtilsTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'catalog-be/src/test') 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 dae9ec8acb..0fb88a531b 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 @@ -777,8 +777,8 @@ class ComponentsUtilsTest { 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("5", ((InRangeConstraint) properties[4].getConstraints().iterator().next()).getInRange().get(0).toString()); + assertEquals("10", ((InRangeConstraint) properties[4].getConstraints().iterator().next()).getInRange().get(1).toString()); assertEquals(3, ((ValidValuesConstraint) properties[5].getConstraints().iterator().next()).getValidValues().size()); assertEquals(11, ((LengthConstraint) properties[6].getConstraints().iterator().next()).getLength()); assertEquals(13, ((MinLengthConstraint) properties[7].getConstraints().iterator().next()).getMinLength()); -- cgit 1.2.3-korg