diff options
author | Lyubomir Marinov <lyubomir.marinov@jitsi.org> | 2008-08-28 22:53:08 +0000 |
---|---|---|
committer | Lyubomir Marinov <lyubomir.marinov@jitsi.org> | 2008-08-28 22:53:08 +0000 |
commit | 7562dd005201968c21a21612fd42680e0962acbc (patch) | |
tree | 134a49eabbb6e59be435603fd3e1e166a74c022b /test/net/java/sip/communicator/slick/protocol/jabber/TestOperationSetBasicInstantMessaging.java | |
parent | d36c3f5d96a4e669eed32132be923f1b3dfff67e (diff) | |
download | jitsi-7562dd005201968c21a21612fd42680e0962acbc.zip jitsi-7562dd005201968c21a21612fd42680e0962acbc.tar.gz jitsi-7562dd005201968c21a21612fd42680e0962acbc.tar.bz2 |
Attempts to fix the problem of writingcyrillic text (it's just an example but it should happen with other encodings as well) and sending ??? instead and receiving cyrillic text which should be displayed correctly but is instead displayed as ???.
Diffstat (limited to 'test/net/java/sip/communicator/slick/protocol/jabber/TestOperationSetBasicInstantMessaging.java')
-rw-r--r-- | test/net/java/sip/communicator/slick/protocol/jabber/TestOperationSetBasicInstantMessaging.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/net/java/sip/communicator/slick/protocol/jabber/TestOperationSetBasicInstantMessaging.java b/test/net/java/sip/communicator/slick/protocol/jabber/TestOperationSetBasicInstantMessaging.java index e24ae17..f481c9f 100644 --- a/test/net/java/sip/communicator/slick/protocol/jabber/TestOperationSetBasicInstantMessaging.java +++ b/test/net/java/sip/communicator/slick/protocol/jabber/TestOperationSetBasicInstantMessaging.java @@ -11,7 +11,6 @@ import java.util.*; import junit.framework.*; import net.java.sip.communicator.service.protocol.*; -import net.java.sip.communicator.service.protocol.Message; import net.java.sip.communicator.service.protocol.event.*; import net.java.sip.communicator.util.*; @@ -377,9 +376,8 @@ public class TestOperationSetBasicInstantMessaging String contentType = "text/html"; String encoding = "UTF-16"; String subject = "test message"; - net.java.sip.communicator.service.protocol.Message msg - = opSetBasicIM1.createMessage( - body.getBytes(), contentType, encoding, subject); + net.java.sip.communicator.service.protocol.Message msg = + opSetBasicIM1.createMessage(body, contentType, encoding, subject); assertEquals("message body", body, msg.getContent()); assertTrue("message body bytes" |