src/test/java/pityoulish/cmdline/ArgsInterpreterTest.java
protected static void assertBackendArgs(String[] args, int argc,
                                          MockBackendHandler mbh)
  {
    assertNotNull("backend handler not called", mbh.receivedArgs);
    assertEquals("wrong number of backend args",
                 argc, mbh.receivedArgs.length);

    for (int i=0; i<argc; i++)
     {
       assertEquals("wrong backend arg #"+i, args[i], mbh.receivedArgs[i]);
     }
  }
/**
   * Asserts that the backend handler has been called with the expected args.
   *
   * @param args   the arguments for the backend, and possibly more
   * @param argc   the number of arguments expected by the backend.
   *            This number of arguments from the start of <code>args</code>
   *            will be verified.
   * @param mbh    the backend handler that should have been called
   */
Asserts that the backend handler has been called with the expected args.
@param args   the arguments for the backend, and possibly more
@param argc   the number of arguments expected by the backend.
This number of arguments from the start of args
will be verified.
@param mbh    the backend handler that should have been called
Asserts that the backend handler has been called with the expected args . @param args the arguments for the backend and possibly more @param argc the number of arguments expected by the backend . This number of arguments from the start of args will be verified . @param mbh the backend handler that should have been called
protected static void assertBackendArgs(String[] args, int argc,
                                          MockBackendHandler mbh)
  {
    assertNotNull("backend handler not called", mbh.receivedArgs);
    assertEquals("wrong number of backend args",
                 argc, mbh.receivedArgs.length);
    for (int i=0; i<argc; i++)
     {
       assertEquals("wrong backend arg #"+i, args[i], mbh.receivedArgs[i]);
     }
  }
protected static void assertBackendArgs ( String [ ] args , int argc , MockBackendHandler mbh ) { assertNotNull ( "backend handler not called" , mbh . receivedArgs ) ; assertEquals ( "wrong number of backend args" , argc , mbh . receivedArgs . length ) ; for ( int i = 0 ; i < argc ; i ++ ) { assertEquals ( "wrong backend arg #" + i , args [ i ] , mbh . receivedArgs [ i ] ) ; } }
Asserts that the backend handler has been called with the expected args.
Asserts that the backend handler has been called with the expected args .