Fix use of Optional in HeatToToscaUtil 68/126368/8
authorfranciscovila <javier.paradela.vila@est.tech>
Wed, 22 Dec 2021 12:41:19 +0000 (12:41 +0000)
committerMichael Morris <michael.morris@est.tech>
Wed, 5 Jan 2022 11:14:12 +0000 (11:14 +0000)
commita811119a9c380bf01f482f08828a9a4b7a8dff6e
tree2628f4a185b9140f705c33f9aedbddf318c8aa82
parenta8a5863cfb100d4cbbecd0aefe5512234e101d97
Fix use of Optional in HeatToToscaUtil

Checking the Optionals are present before getting their values in the
HeatToToscaUtil class. Adding a new test class for this purpose

Issue-ID: SDC-3018
Signed-off-by: franciscovila <javier.paradela.vila@est.tech>
Change-Id: I9fbfbb6f9ebff1f0259b9c9113da6730bfa01cfa
openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/pom.xml
openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/main/java/org/openecomp/sdc/translator/services/heattotosca/HeatToToscaUtil.java
openecomp-be/lib/openecomp-sdc-translator-lib/openecomp-sdc-translator-core/src/test/java/org/openecomp/sdc/translator/services/heattotosca/HeatToToscaUtilTest.java [new file with mode: 0644]