aboutsummaryrefslogtreecommitdiffstats
path: root/src/test
diff options
context:
space:
mode:
authorAmaury Levé <amaury.leve@sonarsource.com>2018-04-26 11:11:04 +0200
committerGitHub <noreply@github.com>2018-04-26 11:11:04 +0200
commit50c1d9b5781d68f18fd37a555d43b2688e368d26 (patch)
treeb59b0f4956f60a10b1c8f24f59bfcabd1d736ba4 /src/test
parent6b728171c3222c8e6697bb1c7e0616a6c9e5fc76 (diff)
downloadsonar-scanner-cli-50c1d9b5781d68f18fd37a555d43b2688e368d26.tar.gz
sonar-scanner-cli-50c1d9b5781d68f18fd37a555d43b2688e368d26.zip
Add more unit tests regarding the --embedded switch (#49)
Diffstat (limited to 'src/test')
-rw-r--r--src/test/java/org/sonarsource/scanner/cli/CliTest.java7
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();
+ }
}