You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mina.apache.org by el...@apache.org on 2014/04/14 11:57:48 UTC

git commit: Replaced french and spanish chars by their equivalent unicode chars.

Repository: mina
Updated Branches:
  refs/heads/trunk 3346ced63 -> 1e5519491


Replaced french and spanish chars by their equivalent unicode chars.

Project: http://git-wip-us.apache.org/repos/asf/mina/repo
Commit: http://git-wip-us.apache.org/repos/asf/mina/commit/1e551949
Tree: http://git-wip-us.apache.org/repos/asf/mina/tree/1e551949
Diff: http://git-wip-us.apache.org/repos/asf/mina/diff/1e551949

Branch: refs/heads/trunk
Commit: 1e5519491baf62f82eaa395f499176b08a5deb3a
Parents: 3346ced
Author: Emmanuel Lécharny <el...@apache.org>
Authored: Mon Apr 14 11:57:08 2014 +0200
Committer: Emmanuel Lécharny <el...@apache.org>
Committed: Mon Apr 14 11:57:08 2014 +0200

----------------------------------------------------------------------
 .../test/java/org/apache/mina/codec/IoBufferTest.java | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mina/blob/1e551949/codec/src/test/java/org/apache/mina/codec/IoBufferTest.java
----------------------------------------------------------------------
diff --git a/codec/src/test/java/org/apache/mina/codec/IoBufferTest.java b/codec/src/test/java/org/apache/mina/codec/IoBufferTest.java
index 29e8475..9e2a3b2 100644
--- a/codec/src/test/java/org/apache/mina/codec/IoBufferTest.java
+++ b/codec/src/test/java/org/apache/mina/codec/IoBufferTest.java
@@ -1020,7 +1020,7 @@ public class IoBufferTest {
     @Test
     public void testChar() {
         for (ByteOrder bo : new ByteOrder[] { ByteOrder.BIG_ENDIAN, ByteOrder.LITTLE_ENDIAN }) {
-            ByteBuffer bb = (ByteBuffer) ByteBuffer.allocate(3).order(bo).putChar('ë').rewind();
+            ByteBuffer bb = (ByteBuffer) ByteBuffer.allocate(3).order(bo).putChar('\u00EB').rewind();
             IoBuffer ioBuffer = IoBuffer.wrap(bb).order(bo);
 
             assertEquals(3, ioBuffer.capacity());
@@ -1029,18 +1029,18 @@ public class IoBufferTest {
             ioBuffer.order(bo);
             ioBuffer.position(2);
             assertEquals(4, ioBuffer.capacity());
-            ioBuffer.putChar('ü');
+            ioBuffer.putChar('\u00FC');
             ioBuffer.rewind();
 
-            assertEquals('ë', ioBuffer.getChar());
-            assertEquals('ü', ioBuffer.getChar());
+            assertEquals('\u00EB', ioBuffer.getChar());
+            assertEquals('\u00FC', ioBuffer.getChar());
             ioBuffer.rewind();
 
-            ioBuffer.putChar(1, 'ç');
-            assertEquals('ç', ioBuffer.getChar(1));
+            ioBuffer.putChar(1, '\u00E7');
+            assertEquals('\u00E7', ioBuffer.getChar(1));
 
             try {
-                ioBuffer.putChar(3, 'ñ');
+                ioBuffer.putChar(3, '\u00F1');
                 fail("Not enough place on the buffer");
             } catch (BufferUnderflowException e) {
                 // Should come here