### Question:
Runner { public static void main(String[] args) throws Exception { System.out.println(LOGO); if (args.length < 1) { Console.exitError(USAGE); } else { switch (args[0]) { case "wallet": WalletRunner.run(tail(args)); break; case "solidity": SolidityFunctionWrapperGenerator.run(tail(args)); break; case "truffle": TruffleJsonFunctionWrapperGenerator.run(tail(args)); break; case "wasm": WasmFunctionWrapperGenerator.run(tail(args)); break; default: Console.exitError(USAGE); } } }  static void main(String[] args);  }### Answer:
@Test public void generateJavaCode() { String binPath = RunnerTest.class.getClassLoader().getResource(bin).getPath(); String abiPath = RunnerTest.class.getClassLoader().getResource(abi).getPath(); String outputPath = tempDirPath; String packageName = "com.platon.sdk.contracts"; String[] params = { "solidity", "generate", binPath, abiPath, "-o", outputPath, "-p", packageName }; try { Runner.main(params); } catch (Exception e) { logger.error("Failed to generate Java code: " + e.getMessage(), e); } String sourceFile = tempDirPath + File.separator + packageName.replace('.', File.separatorChar) + File.separator + Strings.capitaliseFirstLetter("HumanStandardToken") + ".java"; boolean condition = new File(sourceFile).exists(); Assert.assertTrue("Java wrapper source code generator for Solidity ABI format error.", condition); }
@Test public void generateWasmJavaCode() { String binPath = RunnerTest.class.getClassLoader().getResource(wasmbin).getPath(); String abiPath = RunnerTest.class.getClassLoader().getResource(wasmabi).getPath(); String outputPath = tempDirPath; String packageName = "com.platon.sdk.contracts"; String[] params = { "wasm", "generate", binPath, abiPath, "-o", outputPath, "-p", packageName }; try { Runner.main(params); } catch (Exception e) { logger.error("Failed to generate Java code: " + e.getMessage(), e); } String sourceFile = tempDirPath + File.separator + packageName.replace('.', File.separatorChar) + File.separator + Strings.capitaliseFirstLetter("ContractDistory") + ".java"; boolean condition = new File(sourceFile).exists(); Assert.assertTrue("Java wrapper source code generator for Solidity ABI format error.", condition); }