use of com.dexels.replication.api.ReplicationMessageParser in project navajo by Dexels.
the class TestSerializeReplicationMessage method testRepl.
@Test
public void testRepl() {
ReplicationMessageParser parser = new JSONReplicationMessageParserImpl();
ImmutableMessage m = parser.parseStream(this.getClass().getClassLoader().getResourceAsStream("person.json")).message();
StreamDocument.replicationMessageToStreamEvents("Person", m, false).compose(StreamDocument.inNavajo("TestService", Optional.empty(), Optional.empty())).lift(StreamDocument.serialize()).lift(StreamDocument.decode("UTF-8")).blockingForEach(e -> {
System.err.print(e);
});
}
Aggregations