From d8ed7a991d54bd6e53a7c1fedee808ab78dfdf19 Mon Sep 17 00:00:00 2001 From: isaac Date: Wed, 2 Feb 2022 17:26:05 -0600 Subject: Fixing sonar issues in xacml-pdp Issue-ID: POLICY-3900 Signed-off-by: isaac Change-Id: I29d22d1c6b690204270d87fff6ce42d9d00cef6a --- .../onap/policy/pdpx/main/rest/XacmlPdpApplicationManagerTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'main/src/test/java') diff --git a/main/src/test/java/org/onap/policy/pdpx/main/rest/XacmlPdpApplicationManagerTest.java b/main/src/test/java/org/onap/policy/pdpx/main/rest/XacmlPdpApplicationManagerTest.java index 036d4e35..b6c84b1f 100644 --- a/main/src/test/java/org/onap/policy/pdpx/main/rest/XacmlPdpApplicationManagerTest.java +++ b/main/src/test/java/org/onap/policy/pdpx/main/rest/XacmlPdpApplicationManagerTest.java @@ -1,6 +1,6 @@ /*- * ============LICENSE_START======================================================= - * Copyright (C) 2020-2021 AT&T Intellectual Property. All rights reserved. + * Copyright (C) 2020-2022 AT&T Intellectual Property. All rights reserved. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -91,7 +91,7 @@ public class XacmlPdpApplicationManagerTest { // We need at least 1 policies // assertThat(completedJtst).isNotNull(); - assertThat(completedJtst.getToscaTopologyTemplate().getPolicies().size()).isPositive(); + assertThat(completedJtst.getToscaTopologyTemplate().getPolicies()).isNotEmpty(); // // Copy test directory over of the application directories // -- cgit 1.2.3-korg