@Test public void incomplete() throws Exception { Result pr = ShellCommandParser.parse(""); assertEquals(1, pr.getRemainingArgs().length); assertEquals("", pr.getRemainingArgs()[0]); assertNull(pr.getFirstCommand()); assertNull(pr.getLastCommand()); pr = ShellCommandParser.parse("bibl"); assertEquals(1, pr.getRemainingArgs().length); assertEquals("bibl", pr.getRemainingArgs()[0]); assertNull(pr.getFirstCommand()); assertNull(pr.getLastCommand()); pr = ShellCommandParser.parse("get s"); assertEquals(1, pr.getRemainingArgs().length); assertEquals("s", pr.getRemainingArgs()[0]); assertEquals(ShellGetCommand.class, pr.getFirstCommand()); assertEquals(ShellGetCommand.class, pr.getLastCommand()); }
public static Result parse(String line) throws IntrospectionException, InvalidOptionException { return parse(line, Collections.emptyList()); }
ShellCommandParser { public static Result parse(String line) throws IntrospectionException, InvalidOptionException { return parse(line, Collections.emptyList()); } }
ShellCommandParser { public static Result parse(String line) throws IntrospectionException, InvalidOptionException { return parse(line, Collections.emptyList()); } private  ShellCommandParser(); }
ShellCommandParser { public static Result parse(String line) throws IntrospectionException, InvalidOptionException { return parse(line, Collections.emptyList()); } private  ShellCommandParser(); static String[] split(String line); static Result parse(String line); static Result parse(String line,
            Collection<Class<? extends Command>> excluded); static Result parse(String[] args,
            Collection<Class<? extends Command>> excluded); }
ShellCommandParser { public static Result parse(String line) throws IntrospectionException, InvalidOptionException { return parse(line, Collections.emptyList()); } private  ShellCommandParser(); static String[] split(String line); static Result parse(String line); static Result parse(String line,
            Collection<Class<? extends Command>> excluded); static Result parse(String[] args,
            Collection<Class<? extends Command>> excluded);  }