RuntimeOptions { public List<String> getFilters() { return filters; } RuntimeOptions(final String argv);  RuntimeOptions(List<String> argv); List<String> getGlue(); boolean isStrict(); boolean isDryRun(); List<String> getFilters(); boolean isMonochrome(); List<String> getPluginNames();  }
@Test public void assigns_filters_from_tags() { final RuntimeOptions options = new RuntimeOptions( "--tags @keep_this somewhere_else:3"); assertEquals(Arrays.<Object> asList("@keep_this"), options.getFilters()); }
@Test public void shouldParseTagsWhenMultipleWhitespaceBetweenOptionArgs() { final RuntimeOptions parser = new RuntimeOptions( CUCUMBER_OPTS_WITH_MULTI_WHITESPACE_BETWEEN_ARGS); final List<String> tags = parser.getFilters(); assertEquals(Arrays.asList("@tag1,@tag2", "@foo"), tags); }