use of android.os.Bundle in project cucumber-jvm by cucumber.
the class ArgumentsTest method supports_monochrome_as_direct_bundle_argument.
@Test
public void supports_monochrome_as_direct_bundle_argument() {
// given
final Bundle bundle = new Bundle();
bundle.putString("monochrome", "true");
final Arguments arguments = new Arguments(bundle);
// when
final String cucumberOptions = arguments.getCucumberOptions();
// then
assertThat(cucumberOptions, is("--monochrome"));
}
use of android.os.Bundle in project cucumber-jvm by cucumber.
the class ArgumentsTest method isCoverageEnabled_returns_false_when_bundle_contains_false.
@Test
public void isCoverageEnabled_returns_false_when_bundle_contains_false() {
// given
final Bundle bundle = spy(new Bundle());
bundle.putString(Arguments.KEY.COVERAGE_ENABLED, "false");
// when
final Arguments arguments = new Arguments(bundle);
// then
assertThat(arguments.isCoverageEnabled(), is(false));
}
use of android.os.Bundle in project cucumber-jvm by cucumber.
the class ArgumentsTest method isCoverageEnabled_returns_false_when_bundle_contains_no_value.
@Test
public void isCoverageEnabled_returns_false_when_bundle_contains_no_value() {
// given
final Bundle bundle = spy(new Bundle());
// when
final Arguments arguments = new Arguments(bundle);
// then
assertThat(arguments.isCoverageEnabled(), is(false));
}
use of android.os.Bundle in project cucumber-jvm by cucumber.
the class ArgumentsTest method supports_dryRun_as_direct_bundle_argument.
@Test
public void supports_dryRun_as_direct_bundle_argument() {
// given
final Bundle bundle = new Bundle();
bundle.putString("dryRun", "true");
final Arguments arguments = new Arguments(bundle);
// when
final String cucumberOptions = arguments.getCucumberOptions();
// then
assertThat(cucumberOptions, is("--dry-run"));
}
use of android.os.Bundle in project cucumber-jvm by cucumber.
the class ArgumentsTest method supports_snippets_as_direct_bundle_argument.
@Test
public void supports_snippets_as_direct_bundle_argument() {
// given
final Bundle bundle = new Bundle();
bundle.putString("snippets", "someSnippet");
final Arguments arguments = new Arguments(bundle);
// when
final String cucumberOptions = arguments.getCucumberOptions();
// then
assertThat(cucumberOptions, is("--snippets someSnippet"));
}
Aggregations