diff options
Diffstat (limited to 'main/src/test/java')
-rw-r--r-- | main/src/test/java/org/onap/policy/api/main/startstop/TestMain.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/main/src/test/java/org/onap/policy/api/main/startstop/TestMain.java b/main/src/test/java/org/onap/policy/api/main/startstop/TestMain.java index d770b56c..b97b0ccc 100644 --- a/main/src/test/java/org/onap/policy/api/main/startstop/TestMain.java +++ b/main/src/test/java/org/onap/policy/api/main/startstop/TestMain.java @@ -21,6 +21,7 @@ package org.onap.policy.api.main.startstop; +import static org.assertj.core.api.Assertions.assertThatCode; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; @@ -63,7 +64,7 @@ public class TestMain { @Test public void testMain_Help() { final String[] apiConfigParameters = { "-h" }; - Main.main(apiConfigParameters); + assertThatCode(() -> Main.main(apiConfigParameters)).doesNotThrowAnyException(); } @Test |