use of io.joynr.exceptions.JoynrChannelNotAssignableException in project joynr by bmwcarit.
the class SerializationTest method serializeReplyWithJoynrChannelNotAssignableException.
@Test
public void serializeReplyWithJoynrChannelNotAssignableException() throws IOException {
JoynrChannelNotAssignableException error = new JoynrChannelNotAssignableException("detail message: JoynrChannelNotAssignableException", "CCID");
Reply reply = new Reply(UUID.randomUUID().toString(), error);
String writeValueAsString = objectMapper.writeValueAsString(reply);
Reply receivedReply = objectMapper.readValue(writeValueAsString, Reply.class);
Assert.assertEquals(reply, receivedReply);
}
Aggregations