From 7aad20787c1f26731b3d0e870358864fa7869f26 Mon Sep 17 00:00:00 2001 From: "prakash.e@huawei.com" Date: Mon, 18 Apr 2022 21:35:38 +0530 Subject: inplace of hasSize(0), isEmpty() is used in AssertJ for better error message https://sonarcloud.io/project/issues?resolved=false&severities=MINOR&id=onap_vnfsdk-validation Issue-ID: VNFSDK-832 Signed-off-by: prakash.e@huawei.com Change-Id: Ida0d4a2283e500e553b0886b666e5997cf52b7fc --- .../src/test/java/org/onap/functional/VnfValidationFunctionalTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'csarvalidation/src/test') diff --git a/csarvalidation/src/test/java/org/onap/functional/VnfValidationFunctionalTest.java b/csarvalidation/src/test/java/org/onap/functional/VnfValidationFunctionalTest.java index e93c51f..f1f848a 100644 --- a/csarvalidation/src/test/java/org/onap/functional/VnfValidationFunctionalTest.java +++ b/csarvalidation/src/test/java/org/onap/functional/VnfValidationFunctionalTest.java @@ -57,7 +57,7 @@ public class VnfValidationFunctionalTest { assertThat(ruleValidationResult.errors) .hasSize(1); } else { - assertThat(ruleValidationResult.errors).hasSize(0); + assertThat(ruleValidationResult.errors).isEmpty(); } }); -- cgit 1.2.3-korg