use of io.joynr.exceptions.JoynrSendBufferFullException in project joynr by bmwcarit.
the class SerializationTest method serializeReplyWithJoynrSendBufferFullException.
@Test
public void serializeReplyWithJoynrSendBufferFullException() throws IOException {
JoynrSendBufferFullException error = new JoynrSendBufferFullException(new RejectedExecutionException("cause message"));
Reply reply = new Reply(UUID.randomUUID().toString(), error);
String writeValueAsString = objectMapper.writeValueAsString(reply);
System.out.println(writeValueAsString);
Reply receivedReply = objectMapper.readValue(writeValueAsString, Reply.class);
Assert.assertEquals(reply, receivedReply);
}
Aggregations