@Test public void parses_multiple_plugins() { final RuntimeOptions options = new RuntimeOptions(asList("--plugin", "html:some/dir", "--plugin", "pretty", "--glue", "somewhere")); assertEquals(2, options.getPluginNames().size()); assertTrue(options.getPluginNames().contains("pretty")); }
public List<String> getPluginNames() { return pluginNames; }
RuntimeOptions { public List<String> getPluginNames() { return pluginNames; } }
RuntimeOptions { public List<String> getPluginNames() { return pluginNames; } RuntimeOptions(final String argv);  RuntimeOptions(List<String> argv); }
RuntimeOptions { public List<String> getPluginNames() { return pluginNames; } RuntimeOptions(final String argv);  RuntimeOptions(List<String> argv); List<String> getGlue(); boolean isStrict(); boolean isDryRun(); List<String> getFilters(); boolean isMonochrome(); List<String> getPluginNames(); }
RuntimeOptions { public List<String> getPluginNames() { return pluginNames; } RuntimeOptions(final String argv);  RuntimeOptions(List<String> argv); List<String> getGlue(); boolean isStrict(); boolean isDryRun(); List<String> getFilters(); boolean isMonochrome(); List<String> getPluginNames();  }