diff options
author | Jim Hahn <jrh3@att.com> | 2021-06-29 17:12:06 -0400 |
---|---|---|
committer | Jim Hahn <jrh3@att.com> | 2021-06-29 17:12:45 -0400 |
commit | 38a0a3888dc752bc6f88bdcc3477d20e38aeed3f (patch) | |
tree | fe08ebfec5507ed452ba958f8efacbd1b38da6ea /main/src/test/java/org | |
parent | fa94acef1c8e67c05d9141016f8ae6ec9dc2d300 (diff) |
Fix sonars in pap
Fixed:
- indentation
- use isEmpty()
- use isZero()
Issue-ID: POLICY-3287
Change-Id: Idcfba3a6839a47c3136fca8500128990ed64dcb1
Signed-off-by: Jim Hahn <jrh3@att.com>
Diffstat (limited to 'main/src/test/java/org')
-rw-r--r-- | main/src/test/java/org/onap/policy/pap/main/comm/PdpModifyRequestMapTest.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/test/java/org/onap/policy/pap/main/comm/PdpModifyRequestMapTest.java b/main/src/test/java/org/onap/policy/pap/main/comm/PdpModifyRequestMapTest.java index fd5ff86e..27c01e18 100644 --- a/main/src/test/java/org/onap/policy/pap/main/comm/PdpModifyRequestMapTest.java +++ b/main/src/test/java/org/onap/policy/pap/main/comm/PdpModifyRequestMapTest.java @@ -392,8 +392,8 @@ public class PdpModifyRequestMapTest extends CommonRequestBase { final Iterator<PdpSubGroup> iter = group2.getPdpSubgroups().iterator(); PdpSubGroup subgrp = iter.next(); - assertThat(subgrp.getPdpInstances()).hasSize(0); - assertThat(subgrp.getCurrentInstanceCount()).isEqualTo(0); + assertThat(subgrp.getPdpInstances()).isEmpty(); + assertThat(subgrp.getCurrentInstanceCount()).isZero(); subgrp = iter.next(); assertThat(subgrp.getPdpInstances()).hasSize(1); |