Search in sources :

Example 1 with JoynrChannelNotAssignableException

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);
}
Also used : Reply(joynr.Reply) JoynrChannelNotAssignableException(io.joynr.exceptions.JoynrChannelNotAssignableException) Test(org.junit.Test)

Aggregations

JoynrChannelNotAssignableException (io.joynr.exceptions.JoynrChannelNotAssignableException)1 Reply (joynr.Reply)1 Test (org.junit.Test)1