diff options
author | prakash.e@huawei.com <prakash.e@huawei.com> | 2022-04-18 21:35:38 +0530 |
---|---|---|
committer | Kanagaraj Manickam <kanagaraj.manickam@huawei.com> | 2022-05-18 04:17:44 +0000 |
commit | 7aad20787c1f26731b3d0e870358864fa7869f26 (patch) | |
tree | bc869874f439df360ba5c0d056816e36da63cb2b | |
parent | a3d9cc0ea44b7ac13c5c56506aabcb5a43b8068f (diff) |
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 <prakash.e@huawei.com>
Change-Id: Ida0d4a2283e500e553b0886b666e5997cf52b7fc
-rw-r--r-- | csarvalidation/src/test/java/org/onap/functional/VnfValidationFunctionalTest.java | 2 |
1 files changed, 1 insertions, 1 deletions
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(); } }); |