@Test public void testPostResponse() throws IOException, URISyntaxException { InputStreamReader reader = new InputStreamReader( GeneratorTest.class.getResourceAsStream("/post-response/discovery.json")); StringWriterFactory factory = new StringWriterFactory(); Generator.generate(reader, factory, null, EnumSet.of(Generator.MethodType.SYNC)); assertThat(factory.getString("com/appspot/post_response/Registration.java")) .isEqualTo(getExpectedString("/post-response/Registration.java")); assertThat(factory.getCount()).isEqualTo(1); }
public static void generate( Reader discoveryReader, WriterFactory writerFactory, Map<String, String> classMap, EnumSet<MethodType> methodTypes) throws IOException, URISyntaxException { generate(discoveryReader, writerFactory, classMap, methodTypes, new HashMap<String, String>(), new HashMap<>()); }
Generator { public static void generate( Reader discoveryReader, WriterFactory writerFactory, Map<String, String> classMap, EnumSet<MethodType> methodTypes) throws IOException, URISyntaxException { generate(discoveryReader, writerFactory, classMap, methodTypes, new HashMap<String, String>(), new HashMap<>()); } }
Generator { public static void generate( Reader discoveryReader, WriterFactory writerFactory, Map<String, String> classMap, EnumSet<MethodType> methodTypes) throws IOException, URISyntaxException { generate(discoveryReader, writerFactory, classMap, methodTypes, new HashMap<String, String>(), new HashMap<>()); }  }
Generator { public static void generate( Reader discoveryReader, WriterFactory writerFactory, Map<String, String> classMap, EnumSet<MethodType> methodTypes) throws IOException, URISyntaxException { generate(discoveryReader, writerFactory, classMap, methodTypes, new HashMap<String, String>(), new HashMap<>()); }  static void main(String... args); static void generate(
      Reader discoveryReader, WriterFactory writerFactory,
      Map<String, String> classMap, EnumSet<MethodType> methodTypes); static void generate(
      Reader discoveryReader, WriterFactory writerFactory,
      Map<String, String> classMap, EnumSet<MethodType> methodTypes,
      Map<String, String> packageMap,
      Map<String, List<AnnotationType>> roomAnnotationMap); static Map<String, List<AnnotationType>> readAnnotationMap(Reader reader); static Map<String, String> readStringToStringMap(Reader reader); static EnumSet<MethodType> getMethods(String input); }
Generator { public static void generate( Reader discoveryReader, WriterFactory writerFactory, Map<String, String> classMap, EnumSet<MethodType> methodTypes) throws IOException, URISyntaxException { generate(discoveryReader, writerFactory, classMap, methodTypes, new HashMap<String, String>(), new HashMap<>()); }  static void main(String... args); static void generate(
      Reader discoveryReader, WriterFactory writerFactory,
      Map<String, String> classMap, EnumSet<MethodType> methodTypes); static void generate(
      Reader discoveryReader, WriterFactory writerFactory,
      Map<String, String> classMap, EnumSet<MethodType> methodTypes,
      Map<String, String> packageMap,
      Map<String, List<AnnotationType>> roomAnnotationMap); static Map<String, List<AnnotationType>> readAnnotationMap(Reader reader); static Map<String, String> readStringToStringMap(Reader reader); static EnumSet<MethodType> getMethods(String input);  }