diff options
author | Amaury Levé <amaury.leve@sonarsource.com> | 2018-04-26 11:11:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-26 11:11:04 +0200 |
commit | 50c1d9b5781d68f18fd37a555d43b2688e368d26 (patch) | |
tree | b59b0f4956f60a10b1c8f24f59bfcabd1d736ba4 /src | |
parent | 6b728171c3222c8e6697bb1c7e0616a6c9e5fc76 (diff) | |
download | sonar-scanner-cli-50c1d9b5781d68f18fd37a555d43b2688e368d26.tar.gz sonar-scanner-cli-50c1d9b5781d68f18fd37a555d43b2688e368d26.zip |
Add more unit tests regarding the --embedded switch (#49)
Diffstat (limited to 'src')
-rw-r--r-- | src/test/java/org/sonarsource/scanner/cli/CliTest.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/java/org/sonarsource/scanner/cli/CliTest.java b/src/test/java/org/sonarsource/scanner/cli/CliTest.java index ad9d942..82fba5d 100644 --- a/src/test/java/org/sonarsource/scanner/cli/CliTest.java +++ b/src/test/java/org/sonarsource/scanner/cli/CliTest.java @@ -36,6 +36,7 @@ public class CliTest { assertThat(cli.properties()).isNotEmpty(); assertThat(cli.isDebugEnabled()).isFalse(); assertThat(cli.isDisplayVersionOnly()).isFalse(); + assertThat(cli.isEmbedded()).isFalse(); } @Test @@ -143,4 +144,10 @@ public class CliTest { verify(logs).info("usage: sonar-scanner [options]"); verify(exit).exit(Exit.ERROR); } + + @Test + public void should_enable_embedded_mode() { + cli.parse(new String[] {"--embedded"}); + assertThat(cli.isEmbedded()).isTrue(); + } } |