geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rickmcgu...@apache.org
Subject svn commit: r437657 - in /geronimo/specs/trunk: geronimo-javamail_1.3.1_spec/src/test/java/javax/mail/internet/MimeUtilityTest.java geronimo-javamail_1.4_spec/src/test/java/javax/mail/internet/MimeUtilityTest.java
Date Mon, 28 Aug 2006 11:11:44 GMT
Author: rickmcguire
Date: Mon Aug 28 04:11:43 2006
New Revision: 437657

URL: http://svn.apache.org/viewvc?rev=437657&view=rev
Log:
GERONIMO-2355 - javamail MimeUtility tests will not work in all code pages.


Modified:
    geronimo/specs/trunk/geronimo-javamail_1.3.1_spec/src/test/java/javax/mail/internet/MimeUtilityTest.java
    geronimo/specs/trunk/geronimo-javamail_1.4_spec/src/test/java/javax/mail/internet/MimeUtilityTest.java

Modified: geronimo/specs/trunk/geronimo-javamail_1.3.1_spec/src/test/java/javax/mail/internet/MimeUtilityTest.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-javamail_1.3.1_spec/src/test/java/javax/mail/internet/MimeUtilityTest.java?rev=437657&r1=437656&r2=437657&view=diff
==============================================================================
--- geronimo/specs/trunk/geronimo-javamail_1.3.1_spec/src/test/java/javax/mail/internet/MimeUtilityTest.java
(original)
+++ geronimo/specs/trunk/geronimo-javamail_1.3.1_spec/src/test/java/javax/mail/internet/MimeUtilityTest.java
Mon Aug 28 04:11:43 2006
@@ -91,7 +91,9 @@
 
         String encodeString = new String(encodeBytes, "UTF-8");
         // default code page dependent, hard to directly test the encoded results
-        assertEquals(encodeString, MimeUtility.decodeWord(MimeUtility.encodeWord(encodeString)));
+        // The following disabled because it will not succeed on all locales because the
+        // code points used in the test string won't round trip properly for all code pages.
+        // assertEquals(encodeString, MimeUtility.decodeWord(MimeUtility.encodeWord(encodeString)));
 
         String encoded = MimeUtility.encodeWord(encodeString, "UTF-8", "Q");
         assertEquals("=?UTF-8?Q?_h=C3=A9!_=C3=A0=C3=A8=C3=B4u_!!!?=", encoded);
@@ -108,7 +110,9 @@
 
         String encodeString = new String(encodeBytes, "UTF-8");
         // default code page dependent, hard to directly test the encoded results
-        assertEquals(encodeString, MimeUtility.decodeText(MimeUtility.encodeText(encodeString)));
+        // The following disabled because it will not succeed on all locales because the
+        // code points used in the test string won't round trip properly for all code pages.
+        // assertEquals(encodeString, MimeUtility.decodeText(MimeUtility.encodeText(encodeString)));
 
         String encoded = MimeUtility.encodeText(encodeString, "UTF-8", "Q");
         assertEquals("=?UTF-8?Q?_h=C3=A9!_=C3=A0=C3=A8=C3=B4u_!!!?=", encoded);

Modified: geronimo/specs/trunk/geronimo-javamail_1.4_spec/src/test/java/javax/mail/internet/MimeUtilityTest.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-javamail_1.4_spec/src/test/java/javax/mail/internet/MimeUtilityTest.java?rev=437657&r1=437656&r2=437657&view=diff
==============================================================================
--- geronimo/specs/trunk/geronimo-javamail_1.4_spec/src/test/java/javax/mail/internet/MimeUtilityTest.java
(original)
+++ geronimo/specs/trunk/geronimo-javamail_1.4_spec/src/test/java/javax/mail/internet/MimeUtilityTest.java
Mon Aug 28 04:11:43 2006
@@ -112,7 +112,9 @@
 
         String encodeString = new String(encodeBytes, "UTF-8");
         // default code page dependent, hard to directly test the encoded results
-        assertEquals(encodeString, MimeUtility.decodeWord(MimeUtility.encodeWord(encodeString)));
+        // The following disabled because it will not succeed on all locales because the
+        // code points used in the test string won't round trip properly for all code pages.
+        // assertEquals(encodeString, MimeUtility.decodeWord(MimeUtility.encodeWord(encodeString)));
 
         String encoded = MimeUtility.encodeWord(encodeString, "UTF-8", "Q");
         assertEquals("=?UTF-8?Q?_h=C3=A9!_=C3=A0=C3=A8=C3=B4u_!!!?=", encoded);
@@ -129,7 +131,9 @@
 
         String encodeString = new String(encodeBytes, "UTF-8");
         // default code page dependent, hard to directly test the encoded results
-        assertEquals(encodeString, MimeUtility.decodeText(MimeUtility.encodeText(encodeString)));
+        // The following disabled because it will not succeed on all locales because the
+        // code points used in the test string won't round trip properly for all code pages.
+        // assertEquals(encodeString, MimeUtility.decodeText(MimeUtility.encodeText(encodeString)));
 
         String encoded = MimeUtility.encodeText(encodeString, "UTF-8", "Q");
         assertEquals("=?UTF-8?Q?_h=C3=A9!_=C3=A0=C3=A8=C3=B4u_!!!?=", encoded);



Mime
View raw message