diff --git a/test/net/java/sip/communicator/slick/protocol/sip/TestOperationSetBasicInstantMessaging.java b/test/net/java/sip/communicator/slick/protocol/sip/TestOperationSetBasicInstantMessaging.java index 1a6d138cf..eeab99295 100644 --- a/test/net/java/sip/communicator/slick/protocol/sip/TestOperationSetBasicInstantMessaging.java +++ b/test/net/java/sip/communicator/slick/protocol/sip/TestOperationSetBasicInstantMessaging.java @@ -419,16 +419,16 @@ public void testCreateMessage2() assertEquals("message body", body, msg.getContent()); assertEquals("message encoding", encoding, msg.getEncoding()); try { - assertTrue("message body bytes" + assertTrue("message body bytes" , Arrays.equals(body.getBytes(encoding), msg.getRawData())); assertEquals("message length", body.getBytes(encoding).length, - msg.getSize()); + msg.getSize()); } catch (UnsupportedEncodingException e) { logger.warn("The current content encoding isn't supported", e); - assertTrue("message body bytes" - , Arrays.equals(body.getBytes(), msg.getRawData())); + assertTrue("message body bytes" + , Arrays.equals(body.getBytes(), msg.getRawData())); assertEquals("message length", body.getBytes().length, - msg.getSize()); + msg.getSize()); } assertEquals("message content type", contentType, msg.getContentType()); assertNotNull("message uid", msg.getMessageUID());