src/test/java/pityoulish/cmdline/ArgsInterpreterTest.java
public static ArgsInterpreter createAltTestSubject()
  {
    MockBackendHandler mbh = new MockBackendHandler(0);
    MockCommandHandler ch0 = new MockCommandHandler("none", 0);
    MockCommandHandler ch1 = new MockCommandHandler("one", 1);
    MockCommandHandler ch2 = new MockCommandHandler("two", 2);
    MockCommandHandler ch12 = new MockCommandHandler("one", 2);

    return new ArgsInterpreter(mbh, ch0, ch1, ch2, ch12);
  }
/**
   * Creates an interpreter with another default set of handlers.
   * <ul>
   * <li>Backend handler with no arguments</li>
   * <li>Command handler for "none" without arguments</li>
   * <li>Command handler for "one" with one argument</li>
   * <li>Command handler for "two" with two arguments</li>
   * <li>Command handler for "one" with two arguments</li>
   * </ul>
   *
   * @return the argument interpreter
   */
Creates an interpreter with another default set of handlers.

@return the argument interpreter
Creates an interpreter with another default set of handlers . @return the argument interpreter
public static ArgsInterpreter createAltTestSubject()
  {
    MockBackendHandler mbh = new MockBackendHandler(0);
    MockCommandHandler ch0 = new MockCommandHandler("none", 0);
    MockCommandHandler ch1 = new MockCommandHandler("one", 1);
    MockCommandHandler ch2 = new MockCommandHandler("two", 2);
    MockCommandHandler ch12 = new MockCommandHandler("one", 2);
    return new ArgsInterpreter(mbh, ch0, ch1, ch2, ch12);
  }
public static ArgsInterpreter createAltTestSubject ( ) { MockBackendHandler mbh = new MockBackendHandler ( 0 ) ; MockCommandHandler ch0 = new MockCommandHandler ( "none" , 0 ) ; MockCommandHandler ch1 = new MockCommandHandler ( "one" , 1 ) ; MockCommandHandler ch2 = new MockCommandHandler ( "two" , 2 ) ; MockCommandHandler ch12 = new MockCommandHandler ( "one" , 2 ) ; return new ArgsInterpreter ( mbh , ch0 , ch1 , ch2 , ch12 ) ; }
Creates an interpreter with another default set of handlers.
Creates an interpreter with another default set of handlers .