@Test public void testReparseNormalized() throws IOException { InputStream res = getClass().getResourceAsStream("test-schema.js"); Schema s = new Generator().parseNormalized(res); assertEquals(6, s.getModels().size()); }
Schema parseNormalized(InputStream schema) throws IOException { @SuppressWarnings("unchecked") Map<String, Object> map = new Gson().fromJson(new InputStreamReader(schema, "UTF8"), Map.class); return new Schema.Builder().from(map).build(); }
Generator { Schema parseNormalized(InputStream schema) throws IOException { @SuppressWarnings("unchecked") Map<String, Object> map = new Gson().fromJson(new InputStreamReader(schema, "UTF8"), Map.class); return new Schema.Builder().from(map).build(); } }
Generator { Schema parseNormalized(InputStream schema) throws IOException { @SuppressWarnings("unchecked") Map<String, Object> map = new Gson().fromJson(new InputStreamReader(schema, "UTF8"), Map.class); return new Schema.Builder().from(map).build(); }  }
Generator { Schema parseNormalized(InputStream schema) throws IOException { @SuppressWarnings("unchecked") Map<String, Object> map = new Gson().fromJson(new InputStreamReader(schema, "UTF8"), Map.class); return new Schema.Builder().from(map).build(); }  static void main(String[] args); boolean generate(InputStream schema, Options options, Dialect.Collector output); }
Generator { Schema parseNormalized(InputStream schema) throws IOException { @SuppressWarnings("unchecked") Map<String, Object> map = new Gson().fromJson(new InputStreamReader(schema, "UTF8"), Map.class); return new Schema.Builder().from(map).build(); }  static void main(String[] args); boolean generate(InputStream schema, Options options, Dialect.Collector output);  }