Fix build failure in pap 15/127915/1
authorrameshiyer27 <ramesh.murugan.iyer@est.tech>
Mon, 21 Mar 2022 14:29:28 +0000 (14:29 +0000)
committerrameshiyer27 <ramesh.murugan.iyer@est.tech>
Mon, 21 Mar 2022 14:29:28 +0000 (14:29 +0000)
policy-models changes for metadataSet db serialization causes
test failure in pap.

Issue-ID: POLICY-3934
Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech>
Change-Id: Ibc24e3a27e1cdd6111719651349888157fc31593

main/src/test/java/org/onap/policy/pap/main/service/ToscaNodeTemplateServiceTest.java

index cf8aa73..d5c19fe 100644 (file)
@@ -78,7 +78,7 @@ public class ToscaNodeTemplateServiceTest {
         assertDoesNotThrow(() -> nodeTemplateService.getToscaNodeTemplate(NODE_TEMPLATE_NAME, NODE_TEMPLATE_VERSION));
 
         assertThat(nodeTemplateService.getToscaNodeTemplate(NODE_TEMPLATE_NAME, NODE_TEMPLATE_VERSION).getMetadata())
-            .containsEntry("policyModel", nodeTemplate.getMetadata().get("policyModel").toString());
+            .containsEntry("policyModel", nodeTemplate.getMetadata().get("policyModel"));
 
         assertThatThrownBy(() -> nodeTemplateService.getToscaNodeTemplate("invalid_name", "1.0.0"))
             .isInstanceOf(PfModelRuntimeException.class)