@Test public void performSerialization() throws Exception { CollectionsOfEntitiesSerialization sut = new CollectionsOfEntitiesSerialization(){}; sut.serialize(SourceData.simpleResult()); assertThat(sut.allEntities.size(), is(3)); assertThat(sut.allEntities.get("http: assertThat(sut.allEntities.get("http: assertThat(sut.allEntities.get("http: Map<String, CollectionsOfEntitiesSerialization.AggregatedEntity> persons = sut .allEntities.get("http: Set<String> person1BList = persons.get("http: Set<String> person2BList = persons.get("http: assertThat(person1BList, nullValue()); assertThat(person2BList, containsInAnyOrder( "http: "http: "http: )); CollectionsOfEntitiesSerialization.AggregatedEntity subItem11 = sut.allEntities.get("http: CollectionsOfEntitiesSerialization.AggregatedEntity subItem12 = sut.allEntities.get("http: assertThat(subItem11.relations.get("http: assertThat(subItem12.relations.get("http: }
@Override public void serialize(SerializableResult serializableResult) throws IOException { CollectDistinctEntities collector = new CollectDistinctEntities(); for (Serializable serializable : serializableResult.getData().getContents().values()) { collector.dispatch(serializable, null); } }
CollectionsOfEntitiesSerialization implements Serialization { @Override public void serialize(SerializableResult serializableResult) throws IOException { CollectDistinctEntities collector = new CollectDistinctEntities(); for (Serializable serializable : serializableResult.getData().getContents().values()) { collector.dispatch(serializable, null); } } }
CollectionsOfEntitiesSerialization implements Serialization { @Override public void serialize(SerializableResult serializableResult) throws IOException { CollectDistinctEntities collector = new CollectDistinctEntities(); for (Serializable serializable : serializableResult.getData().getContents().values()) { collector.dispatch(serializable, null); } } CollectionsOfEntitiesSerialization(); }
CollectionsOfEntitiesSerialization implements Serialization { @Override public void serialize(SerializableResult serializableResult) throws IOException { CollectDistinctEntities collector = new CollectDistinctEntities(); for (Serializable serializable : serializableResult.getData().getContents().values()) { collector.dispatch(serializable, null); } } CollectionsOfEntitiesSerialization(); @Override void serialize(SerializableResult serializableResult); AggregatedEntity getEntity(Entity entity); }
CollectionsOfEntitiesSerialization implements Serialization { @Override public void serialize(SerializableResult serializableResult) throws IOException { CollectDistinctEntities collector = new CollectDistinctEntities(); for (Serializable serializable : serializableResult.getData().getContents().values()) { collector.dispatch(serializable, null); } } CollectionsOfEntitiesSerialization(); @Override void serialize(SerializableResult serializableResult); AggregatedEntity getEntity(Entity entity);  }