diff options
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(); + } } |