@Test public void mergeExplicitSchemaMergesFieldsForSameCollection() throws Exception { Map<String, List<ExplicitField>> explicitSchema1 = new HashMap<>(); ExplicitField explicitField1 = new ExplicitField("test:test1", false, Sets.newHashSet("String"), null); explicitSchema1.put("http: Map<String, List<ExplicitField>> explicitSchema2 = new HashMap<>(); ExplicitField explicitField2 = new ExplicitField("test:test2", false, null, Sets.newHashSet("String")); explicitSchema2.put("http: MergeExplicitSchemas mergeExplicitSchemas = new MergeExplicitSchemas(); Map<String, List<ExplicitField>> mergedExplicitSchema = mergeExplicitSchemas.mergeExplicitSchemas( explicitSchema1, explicitSchema2 ); assertThat(mergedExplicitSchema, hasKey("http: assertThat(mergedExplicitSchema.get("http: containsInAnyOrder(explicitField1, explicitField2)); }
public MergeExplicitSchemas() { }
MergeExplicitSchemas { public MergeExplicitSchemas() { } }
MergeExplicitSchemas { public MergeExplicitSchemas() { } MergeExplicitSchemas(); }
MergeExplicitSchemas { public MergeExplicitSchemas() { } MergeExplicitSchemas(); Map<String, List<ExplicitField>> mergeExplicitSchemas(Map<String, List<ExplicitField>> explicitSchema1,
                                                               Map<String, List<ExplicitField>> explicitSchema2); }
MergeExplicitSchemas { public MergeExplicitSchemas() { } MergeExplicitSchemas(); Map<String, List<ExplicitField>> mergeExplicitSchemas(Map<String, List<ExplicitField>> explicitSchema1,
                                                               Map<String, List<ExplicitField>> explicitSchema2);  }