[jboss-cvs] JBossAS SVN: r62876 - projects/security/security-jboss-sx/trunk/src/tests/org/jboss/test.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue May 8 12:03:28 EDT 2007
Author: anil.saldhana at jboss.com
Date: 2007-05-08 12:03:28 -0400 (Tue, 08 May 2007)
New Revision: 62876
Modified:
projects/security/security-jboss-sx/trunk/src/tests/org/jboss/test/UtilTestCase.java
Log:
comment out the MimeUtility encoding
Modified: projects/security/security-jboss-sx/trunk/src/tests/org/jboss/test/UtilTestCase.java
===================================================================
--- projects/security/security-jboss-sx/trunk/src/tests/org/jboss/test/UtilTestCase.java 2007-05-08 16:02:40 UTC (rev 62875)
+++ projects/security/security-jboss-sx/trunk/src/tests/org/jboss/test/UtilTestCase.java 2007-05-08 16:03:28 UTC (rev 62876)
@@ -21,10 +21,13 @@
*/
package org.jboss.test;
+import javax.mail.internet.MimeUtility;
+
import junit.framework.TestCase;
import junit.framework.TestSuite;
import org.jboss.security.Util;
+import org.jboss.util.Base64;
/** Tests of the org.jboss.security.Util class
@@ -45,14 +48,15 @@
System.out.println("testBase64");
byte[] test = "echoman".getBytes();
String b64_1 = Util.encodeBase64(test);
+ //String b64_1 = Base64.encodeBytes(test);
+
System.out.println("b64_1 = "+b64_1);
-
- //sun.misc.BASE64Encoder encoder = new sun.misc.BASE64Encoder();
- //String b64_2 = encoder.encode(test);
- String b64_2 = javax.mail.internet.MimeUtility.encodeText("echoman", "iso-8859-1", "base64");
+ //Anil: I think the MimeUtility.encodeText is broken
+ /*
+ String b64_2 = MimeUtility.encodeText("echoman", "iso-8859-1", "B");
System.out.println("b64_2 = "+b64_2);
- super.assertEquals("encodeBase64 == BASE64Encoder", b64_1, b64_2);
+ super.assertEquals("encodeBase64 == BASE64Encoder", b64_1, b64_2);*/
}
/** Compare Util.encodeBase16 against the java.math.BigInteger class
More information about the jboss-cvs-commits
mailing list