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);  }
@Test public void testRequiredRequest() { CodeGeneratorRequest request = TestRequestLoader.getRequiredRequest(); CodeGeneratorResponse response = CompilerPlugin.handleRequest(request); }
@Test public void testImportRequest() { CodeGeneratorRequest request = TestRequestLoader.getImportRequest(); CodeGeneratorResponse response = CompilerPlugin.handleRequest(request); }
@Test public void testAllTypesRequest() { CodeGeneratorRequest request = TestRequestLoader.getAllTypesRequest(); CodeGeneratorResponse response = CompilerPlugin.handleRequest(request); }
@Test public void testRepeatedPackablesRequest() { CodeGeneratorRequest request = TestRequestLoader.getRepeatedPackablesRequest(); CodeGeneratorResponse response = CompilerPlugin.handleRequest(request); }