CmdCaller { private static void usage() { System.out .println("[Deprecated!] Usage: java [-Dhfile=headers.prop] [-Ddfile=d.txt] -jar Http-client.jar method url apiName version [ak sk]"); System.out.println(" method = get : call url with GET method "); System.out.println(" method = post : call url with POST method "); System.out.println(" method = cget : return curl request string with GET method, "); System.out.println(" method = cpost : return curl request string with POST method "); System.out.println(" system property 'hfile' is an optional，to set a file which defines http headers, its content format:"); System.out.println(" header1=value1"); System.out.println(" header2=value2"); System.out.println(" system property 'dfile' is an optional，to set a file which defines body data, its content format:"); System.out.println(" data1=value1"); System.out.println(" data2=value2"); System.out.println(" "); System.out.println(" print current SDK version: java -jar Http-client.jar -v "); System.out.println("----------------------------"); System.out.println("Please use this NEW command line:"); CmdHttpCaller.usage(null); }  static void main(String args[]);  }
@Test public void testUsage() { CmdCaller.main(new String[]{"abc", "http: }