aboutsummaryrefslogtreecommitdiffstats
path: root/models-interactions/model-impl/sdnr
diff options
context:
space:
mode:
authoradheli.tavares <adheli.tavares@est.tech>2025-01-10 11:50:41 +0000
committeradheli.tavares <adheli.tavares@est.tech>2025-01-10 11:51:51 +0000
commitb60fb4d0e5ad3603f967029a2682484cbdd81cec (patch)
tree5918b072b3219512bd8d60c777e7891bddaabbef /models-interactions/model-impl/sdnr
parent7cfbbcb1f16ab8b358c06a1f77fc94a203a53212 (diff)
Fix sonar issues
- fixing sonar issues on code to generate new models-* artifacts with parent new dependencies. Issue-ID: POLICY-5240 Change-Id: I41e01ededbc20c9b389be1167691aeb4e03cd0fb Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
Diffstat (limited to 'models-interactions/model-impl/sdnr')
-rw-r--r--models-interactions/model-impl/sdnr/src/test/java/org/onap/policy/sdnr/SdnrTest.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/models-interactions/model-impl/sdnr/src/test/java/org/onap/policy/sdnr/SdnrTest.java b/models-interactions/model-impl/sdnr/src/test/java/org/onap/policy/sdnr/SdnrTest.java
index 3fd2cfd5b..abfd25547 100644
--- a/models-interactions/model-impl/sdnr/src/test/java/org/onap/policy/sdnr/SdnrTest.java
+++ b/models-interactions/model-impl/sdnr/src/test/java/org/onap/policy/sdnr/SdnrTest.java
@@ -3,7 +3,7 @@
* sdnr
* ================================================================================
* Copyright (C) 2018 Wipro Limited Intellectual Property. All rights reserved.
- * Modifications Copyright (C) 2019, 2024 Nordix Foundation.
+ * Modifications Copyright (C) 2019, 2024-2025 Nordix Foundation.
* Modifications Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -106,7 +106,7 @@ class SdnrTest {
*/
assertTrue(jsonRequest.contains("Action"));
- logger.debug("Request as JSON: " + jsonRequest + "\n\n");
+ logger.debug("Request as JSON: {} \n\n", jsonRequest);
}
@Test
@@ -147,7 +147,7 @@ class SdnrTest {
assertNotNull(sdnrRequest.getAction());
assertEquals("ModifyConfig", sdnrRequest.getAction());
- logger.debug("Request as a Java Object: \n" + sdnrRequest.toString() + "\n\n");
+ logger.debug("Request as a Java Object:\n {} \n\n", sdnrRequest);
}
@Test
@@ -172,7 +172,7 @@ class SdnrTest {
assertTrue(jsonResponse.contains("SubRequestID"));
assertTrue(jsonResponse.contains("Status"));
- logger.debug("Response as JSON: " + jsonResponse + "\n\n");
+ logger.debug("Response as JSON: {}\n\n", jsonResponse);
}
@Test
@@ -212,6 +212,6 @@ class SdnrTest {
assertNotNull(sdnrResponse.getStatus());
assertEquals(400, sdnrResponse.getStatus().getCode());
- logger.debug("Response as a Java Object: \n" + sdnrResponse.toString() + "\n\n");
+ logger.debug("Response as a Java Object:\n {} \n\n", sdnrResponse);
}
}