@Test public void testRequiredRequest() { CodeGeneratorRequest request = TestRequestLoader.getRequiredRequest(); CodeGeneratorResponse response = CompilerPlugin.handleRequest(request); }
static CodeGeneratorResponse handleRequest(InputStream input) throws IOException { try { return handleRequest(CodeGeneratorRequest.parseFrom(input)); } catch (GeneratorException ge) { return ParserUtil.asError(ge.getMessage()); } catch (Exception ex) { return ParserUtil.asErrorWithStackTrace(ex); } }
CompilerPlugin { static CodeGeneratorResponse handleRequest(InputStream input) throws IOException { try { return handleRequest(CodeGeneratorRequest.parseFrom(input)); } catch (GeneratorException ge) { return ParserUtil.asError(ge.getMessage()); } catch (Exception ex) { return ParserUtil.asErrorWithStackTrace(ex); } } }
CompilerPlugin { static CodeGeneratorResponse handleRequest(InputStream input) throws IOException { try { return handleRequest(CodeGeneratorRequest.parseFrom(input)); } catch (GeneratorException ge) { return ParserUtil.asError(ge.getMessage()); } catch (Exception ex) { return ParserUtil.asErrorWithStackTrace(ex); } }  }
CompilerPlugin { static CodeGeneratorResponse handleRequest(InputStream input) throws IOException { try { return handleRequest(CodeGeneratorRequest.parseFrom(input)); } catch (GeneratorException ge) { return ParserUtil.asError(ge.getMessage()); } catch (Exception ex) { return ParserUtil.asErrorWithStackTrace(ex); } }  static void main(String[] args); }
CompilerPlugin { static CodeGeneratorResponse handleRequest(InputStream input) throws IOException { try { return handleRequest(CodeGeneratorRequest.parseFrom(input)); } catch (GeneratorException ge) { return ParserUtil.asError(ge.getMessage()); } catch (Exception ex) { return ParserUtil.asErrorWithStackTrace(ex); } }  static void main(String[] args);  }