diff options
author | waynedunican <wayne.dunican@est.tech> | 2020-07-24 09:46:36 +0100 |
---|---|---|
committer | waynedunican <wayne.dunican@est.tech> | 2020-07-27 13:28:30 +0100 |
commit | b2e2d5f8daeefb08873d11de44cb4cfe7cfab03a (patch) | |
tree | be45f7f5bf18fe4a1a1b1b430a4089a1d1a316c2 /tools/simple-wsclient/src/test/java | |
parent | ba58c5bad6075f7bc902de80190cc6770a209bb6 (diff) |
SONAR assertions apex-pdp
Ensure assertions are present in test cases
Issue-ID: POLICY-2706
Change-Id: I3673a7668564401d2136450b0bdd7a013605dd7c
Signed-off-by: waynedunican <wayne.dunican@est.tech>
Diffstat (limited to 'tools/simple-wsclient/src/test/java')
-rw-r--r-- | tools/simple-wsclient/src/test/java/org/onap/policy/apex/tools/simple/wsclient/WsClientTest.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/simple-wsclient/src/test/java/org/onap/policy/apex/tools/simple/wsclient/WsClientTest.java b/tools/simple-wsclient/src/test/java/org/onap/policy/apex/tools/simple/wsclient/WsClientTest.java index 8ff185504..6faafe759 100644 --- a/tools/simple-wsclient/src/test/java/org/onap/policy/apex/tools/simple/wsclient/WsClientTest.java +++ b/tools/simple-wsclient/src/test/java/org/onap/policy/apex/tools/simple/wsclient/WsClientTest.java @@ -21,6 +21,7 @@ package org.onap.policy.apex.tools.simple.wsclient; +import static org.assertj.core.api.Assertions.assertThatCode; import static org.junit.Assert.assertTrue; import java.io.ByteArrayInputStream; @@ -38,7 +39,7 @@ public class WsClientTest { final String[] EventArgs = { "-h" }; - WsClientMain.main(EventArgs); + assertThatCode(() -> WsClientMain.main(EventArgs)).doesNotThrowAnyException(); } @Test |