aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortkogut <tomasz.kogut@nokia.com>2020-09-17 09:45:24 +0200
committertkogut <tomasz.kogut@nokia.com>2020-09-17 09:45:24 +0200
commit8b7c2d542a3c13356c7f6fc8218adae8b0fdadce (patch)
tree04e638379871530888aad8d124127ffe976b55c2
parentdbe9528c1571b97728649b54e00be6ae947c23ef (diff)
[OOM-CPMv2] Fix sonar issue
Use assertThat(actual).contains(expected) instead Issue-ID: OOM-2526 Signed-off-by: tkogut <tomasz.kogut@nokia.com> Change-Id: I5c7520030329ace8823134e3123b34c77b5576c6
-rw-r--r--trustStoreMerger/src/test/java/org/onap/oom/certservice/postprocessor/merger/model/certificate/PemAliasGeneratorTest.java2
1 files changed, 1 insertions, 1 deletions
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