From 8b7c2d542a3c13356c7f6fc8218adae8b0fdadce Mon Sep 17 00:00:00 2001 From: tkogut Date: Thu, 17 Sep 2020 09:45:24 +0200 Subject: [OOM-CPMv2] Fix sonar issue Use assertThat(actual).contains(expected) instead Issue-ID: OOM-2526 Signed-off-by: tkogut Change-Id: I5c7520030329ace8823134e3123b34c77b5576c6 --- .../postprocessor/merger/model/certificate/PemAliasGeneratorTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trustStoreMerger/src/test/java/org/onap/oom/certservice/postprocessor/merger/model/certificate/PemAliasGeneratorTest.java b/trustStoreMerger/src/test/java/org/onap/oom/certservice/postprocessor/merger/model/certificate/PemAliasGeneratorTest.java index bde23003..03989f6f 100644 --- a/trustStoreMerger/src/test/java/org/onap/oom/certservice/postprocessor/merger/model/certificate/PemAliasGeneratorTest.java +++ b/trustStoreMerger/src/test/java/org/onap/oom/certservice/postprocessor/merger/model/certificate/PemAliasGeneratorTest.java @@ -37,7 +37,7 @@ class PemAliasGeneratorTest { //when String alias = pemAliasGenerator.getAlias(); //then - assertThat(alias.contains(PREFIX_ALIAS_NAME)).isTrue(); + assertThat(alias).contains(PREFIX_ALIAS_NAME); } @Test -- cgit 1.2.3-korg