From 865100d2bbaafac77f1d9e637bca81adc03c4c44 Mon Sep 17 00:00:00 2001 From: "adheli.tavares" Date: Thu, 28 Sep 2023 18:26:22 +0100 Subject: Fix nexus and sonar vulnerabilities - IQ nexus dependencies - sonar hotspots and code smells Issue-ID: POLICY-4760 Change-Id: Ic4260c568f9d9164a33aacb34a5ff3a6f91b1bd8 Signed-off-by: adheli.tavares --- .../provider/AuthorativeToscaProviderNodeTemplateTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'models-tosca/src/test/java/org/onap') diff --git a/models-tosca/src/test/java/org/onap/policy/models/tosca/authorative/provider/AuthorativeToscaProviderNodeTemplateTest.java b/models-tosca/src/test/java/org/onap/policy/models/tosca/authorative/provider/AuthorativeToscaProviderNodeTemplateTest.java index 64c164796..d47e194eb 100644 --- a/models-tosca/src/test/java/org/onap/policy/models/tosca/authorative/provider/AuthorativeToscaProviderNodeTemplateTest.java +++ b/models-tosca/src/test/java/org/onap/policy/models/tosca/authorative/provider/AuthorativeToscaProviderNodeTemplateTest.java @@ -63,8 +63,8 @@ public class AuthorativeToscaProviderNodeTemplateTest { private static ToscaServiceTemplate createToscaNodeTemplate; private PfDao pfDao; private StandardCoder standardCoder; - private AuthorativeToscaProvider authorativeToscaProvider = new AuthorativeToscaProvider(); - private YamlJsonTranslator yamlJsonTranslator = new YamlJsonTranslator(); + private final AuthorativeToscaProvider authorativeToscaProvider = new AuthorativeToscaProvider(); + private final YamlJsonTranslator yamlJsonTranslator = new YamlJsonTranslator(); /** * Read policy metadataSet input json. @@ -230,7 +230,7 @@ public class AuthorativeToscaProviderNodeTemplateTest { } @Test - public void testToscaNodeTemplatetDelete() throws Exception { + public void testToscaNodeTemplateDelete() throws Exception { assertThatThrownBy(() -> { authorativeToscaProvider.deleteToscaNodeTemplate(null, null, null); }).hasMessageMatching(DAO_IS_NULL); -- cgit 1.2.3-korg