diff options
author | adheli.tavares <adheli.tavares@est.tech> | 2025-01-10 11:50:41 +0000 |
---|---|---|
committer | adheli.tavares <adheli.tavares@est.tech> | 2025-01-10 11:51:51 +0000 |
commit | b60fb4d0e5ad3603f967029a2682484cbdd81cec (patch) | |
tree | 5918b072b3219512bd8d60c777e7891bddaabbef /models-pap/src | |
parent | 7cfbbcb1f16ab8b358c06a1f77fc94a203a53212 (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-pap/src')
-rw-r--r-- | models-pap/src/test/java/org/onap/policy/models/pap/persistence/concepts/JpaPolicyAuditTest.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/models-pap/src/test/java/org/onap/policy/models/pap/persistence/concepts/JpaPolicyAuditTest.java b/models-pap/src/test/java/org/onap/policy/models/pap/persistence/concepts/JpaPolicyAuditTest.java index 25b3219c6..104ca84df 100644 --- a/models-pap/src/test/java/org/onap/policy/models/pap/persistence/concepts/JpaPolicyAuditTest.java +++ b/models-pap/src/test/java/org/onap/policy/models/pap/persistence/concepts/JpaPolicyAuditTest.java @@ -1,6 +1,6 @@ /*- * ============LICENSE_START======================================================= - * Copyright (C) 2021-2024 Nordix Foundation. + * Copyright (C) 2021-2025 Nordix Foundation. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -83,7 +83,7 @@ class JpaPolicyAuditTest { void testClean() { audit.setUser(" user"); JpaPolicyAudit jpaAudit = new JpaPolicyAudit(audit); - assertThatNoException().isThrownBy(() -> jpaAudit.clean()); + assertThatNoException().isThrownBy(jpaAudit::clean); assertEquals(USER, jpaAudit.getUserName()); } |