From a7e30d0527dbf8ddf7e431bcb9c16f39c30aab8b Mon Sep 17 00:00:00 2001 From: Suresh Charan Date: Mon, 27 Feb 2023 13:14:07 -0500 Subject: Fixed sonar issues in policy-pap Reduced technical debt by fixing sonar issues Issue-ID: POLICY-4536 Change-Id: I3f4ff8cae7d22c5d2d062e98475592425e3c98c4 Signed-off-by: Suresh Charan --- .../org/onap/policy/pap/main/service/PolicyStatusServiceTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'main/src/test/java/org') diff --git a/main/src/test/java/org/onap/policy/pap/main/service/PolicyStatusServiceTest.java b/main/src/test/java/org/onap/policy/pap/main/service/PolicyStatusServiceTest.java index aeb2fdbb..6166580e 100644 --- a/main/src/test/java/org/onap/policy/pap/main/service/PolicyStatusServiceTest.java +++ b/main/src/test/java/org/onap/policy/pap/main/service/PolicyStatusServiceTest.java @@ -1,6 +1,6 @@ /*- * ============LICENSE_START======================================================= - * Copyright (C) 2022 Bell Canada. All rights reserved. + * Copyright (C) 2022-2023 Bell Canada. All rights reserved. * Modifications Copyright (C) 2022 Nordix Foundation. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); @@ -141,7 +141,7 @@ public class PolicyStatusServiceTest extends CommonPapRestServer { // Test delete policyStatusService.cudPolicyStatus(null, null, List.of(status)); - assertThat(policyStatusService.getAllPolicyStatus()).hasSize(0); + assertThat(policyStatusService.getAllPolicyStatus()).isEmpty(); } private List createStatusList() { -- cgit 1.2.3-korg