aboutsummaryrefslogtreecommitdiffstats
path: root/test/net/java/sip
diff options
context:
space:
mode:
authorLyubomir Marinov <lyubomir.marinov@jitsi.org>2008-08-28 22:53:08 +0000
committerLyubomir Marinov <lyubomir.marinov@jitsi.org>2008-08-28 22:53:08 +0000
commit7562dd005201968c21a21612fd42680e0962acbc (patch)
tree134a49eabbb6e59be435603fd3e1e166a74c022b /test/net/java/sip
parentd36c3f5d96a4e669eed32132be923f1b3dfff67e (diff)
downloadjitsi-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')
-rw-r--r--test/net/java/sip/communicator/slick/protocol/gibberish/TestOperationSetBasicInstantMessaging.java5
-rw-r--r--test/net/java/sip/communicator/slick/protocol/icq/TestOperationSetBasicInstantMessaging.java5
-rw-r--r--test/net/java/sip/communicator/slick/protocol/jabber/TestOperationSetBasicInstantMessaging.java6
-rw-r--r--test/net/java/sip/communicator/slick/protocol/msn/TestOperationSetBasicInstantMessaging.java6
-rw-r--r--test/net/java/sip/communicator/slick/protocol/sip/TestOperationSetBasicInstantMessaging.java5
-rw-r--r--test/net/java/sip/communicator/slick/protocol/yahoo/TestOperationSetBasicInstantMessaging.java6
6 files changed, 12 insertions, 21 deletions
diff --git a/test/net/java/sip/communicator/slick/protocol/gibberish/TestOperationSetBasicInstantMessaging.java b/test/net/java/sip/communicator/slick/protocol/gibberish/TestOperationSetBasicInstantMessaging.java
index 5323000..3adc3dc 100644
--- a/test/net/java/sip/communicator/slick/protocol/gibberish/TestOperationSetBasicInstantMessaging.java
+++ b/test/net/java/sip/communicator/slick/protocol/gibberish/TestOperationSetBasicInstantMessaging.java
@@ -373,9 +373,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"
diff --git a/test/net/java/sip/communicator/slick/protocol/icq/TestOperationSetBasicInstantMessaging.java b/test/net/java/sip/communicator/slick/protocol/icq/TestOperationSetBasicInstantMessaging.java
index 6360757..1f171c7 100644
--- a/test/net/java/sip/communicator/slick/protocol/icq/TestOperationSetBasicInstantMessaging.java
+++ b/test/net/java/sip/communicator/slick/protocol/icq/TestOperationSetBasicInstantMessaging.java
@@ -266,9 +266,8 @@ public class TestOperationSetBasicInstantMessaging
String contentType = "text/html";
String encoding = "UTF-16";
String subject = "test message";
- net.java.sip.communicator.service.protocol.Message msg
- = opSetBasicIM.createMessage(
- body.getBytes(), contentType, encoding, subject);
+ net.java.sip.communicator.service.protocol.Message msg =
+ opSetBasicIM.createMessage(body, contentType, encoding, subject);
assertEquals("message body", body, msg.getContent());
assertTrue("message body bytes"
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"
diff --git a/test/net/java/sip/communicator/slick/protocol/msn/TestOperationSetBasicInstantMessaging.java b/test/net/java/sip/communicator/slick/protocol/msn/TestOperationSetBasicInstantMessaging.java
index 023181e..4153ff6 100644
--- a/test/net/java/sip/communicator/slick/protocol/msn/TestOperationSetBasicInstantMessaging.java
+++ b/test/net/java/sip/communicator/slick/protocol/msn/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.*;
@@ -344,9 +343,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"
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 eeab992..eccdef5 100644
--- a/test/net/java/sip/communicator/slick/protocol/sip/TestOperationSetBasicInstantMessaging.java
+++ b/test/net/java/sip/communicator/slick/protocol/sip/TestOperationSetBasicInstantMessaging.java
@@ -412,9 +412,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());
assertEquals("message encoding", encoding, msg.getEncoding());
diff --git a/test/net/java/sip/communicator/slick/protocol/yahoo/TestOperationSetBasicInstantMessaging.java b/test/net/java/sip/communicator/slick/protocol/yahoo/TestOperationSetBasicInstantMessaging.java
index 5b7aba0..014de9e 100644
--- a/test/net/java/sip/communicator/slick/protocol/yahoo/TestOperationSetBasicInstantMessaging.java
+++ b/test/net/java/sip/communicator/slick/protocol/yahoo/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.*;
@@ -354,9 +353,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"