@Test public void getArguments() { PropFile container = new PropFile(Context.named(""), PropFile.Loc.System); container.add("argsFoo", "=bar"); PropFileChain chain = new PropFileChain(Collections.<Context, PropFileChain>emptyMap()); chain.set(container, PropFile.Loc.System); Map<Context, PropFileChain> filterConsultant = new ConcurrentHashMap<Context, PropFileChain>(2, 1.0f); filterConsultant.put(Context.named(""), chain); PropFileChain props = new PropFileChain(chain, filterConsultant); List<String> arguments = PrefixedProps.getArguments(props, "args"); assertEquals(1, arguments.size()); assertEquals("Foo=bar", arguments.get(0)); container.add("argsfoo", "=Bar"); arguments = PrefixedProps.getArguments(props, "args"); assertEquals(2, arguments.size()); assertEquals("Foo=bar", arguments.get(0)); assertEquals("foo=Bar", arguments.get(1)); container.add("argsARG", "VAL"); arguments = PrefixedProps.getArguments(props, "args", "="); assertEquals(3, arguments.size()); assertEquals("Foo==bar", arguments.get(0)); assertEquals("foo==Bar", arguments.get(1)); assertEquals("ARG=VAL", arguments.get(2)); }
public static List<String> getArguments(Context context, String propertyPrefix) { return getArguments(context, propertyPrefix, ""); }
PrefixedProps { public static List<String> getArguments(Context context, String propertyPrefix) { return getArguments(context, propertyPrefix, ""); } }
PrefixedProps { public static List<String> getArguments(Context context, String propertyPrefix) { return getArguments(context, propertyPrefix, ""); }  }
PrefixedProps { public static List<String> getArguments(Context context, String propertyPrefix) { return getArguments(context, propertyPrefix, ""); }  static List<String> getArguments(Context context, String propertyPrefix); static List<String> getArguments(Context context, String propertyPrefix, String separator); static List<String> getArguments(PropFileChain props, String propertyPrefix); static List<String> getArguments(PropFileChain props, String propertyPrefix, String separator); }
PrefixedProps { public static List<String> getArguments(Context context, String propertyPrefix) { return getArguments(context, propertyPrefix, ""); }  static List<String> getArguments(Context context, String propertyPrefix); static List<String> getArguments(Context context, String propertyPrefix, String separator); static List<String> getArguments(PropFileChain props, String propertyPrefix); static List<String> getArguments(PropFileChain props, String propertyPrefix, String separator);  }