[Jboss-cvs] JBossAS SVN: r55380 - in trunk/security: . src/main/org/jboss/test
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon Aug 7 16:13:21 EDT 2006
Author: acoliver at jboss.org
Date: 2006-08-07 16:13:20 -0400 (Mon, 07 Aug 2006)
New Revision: 55380
Modified:
trunk/security/build.xml
trunk/security/src/main/org/jboss/test/UtilTestCase.java
Log:
http://jira.jboss.com/jira/browse/JBAS-3484
Modified: trunk/security/build.xml
===================================================================
--- trunk/security/build.xml 2006-08-07 20:08:36 UTC (rev 55379)
+++ trunk/security/build.xml 2006-08-07 20:13:20 UTC (rev 55380)
@@ -76,6 +76,7 @@
<path refid="javassist.classpath"/>
<path refid="sun.xacml.classpath"/>
<path refid="jboss.jbossxb.classpath"/>
+ <path refid="sun.javamail.classpath"/>
</path>
<!-- ======= -->
Modified: trunk/security/src/main/org/jboss/test/UtilTestCase.java
===================================================================
--- trunk/security/src/main/org/jboss/test/UtilTestCase.java 2006-08-07 20:08:36 UTC (rev 55379)
+++ trunk/security/src/main/org/jboss/test/UtilTestCase.java 2006-08-07 20:13:20 UTC (rev 55380)
@@ -47,8 +47,10 @@
String b64_1 = Util.encodeBase64(test);
System.out.println("b64_1 = "+b64_1);
- sun.misc.BASE64Encoder encoder = new sun.misc.BASE64Encoder();
- String b64_2 = encoder.encode(test);
+
+ //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");
System.out.println("b64_2 = "+b64_2);
super.assertEquals("encodeBase64 == BASE64Encoder", b64_1, b64_2);
}
More information about the jboss-cvs-commits
mailing list