[Jboss-cvs] JBossAS SVN: r55378 - in branches/Branch_4_0/security: . src/main/org/jboss/test

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon Aug 7 16:02:14 EDT 2006


Author: acoliver at jboss.org
Date: 2006-08-07 16:02:13 -0400 (Mon, 07 Aug 2006)
New Revision: 55378

Modified:
   branches/Branch_4_0/security/build.xml
   branches/Branch_4_0/security/src/main/org/jboss/test/UtilTestCase.java
Log:
http://jira.jboss.com/jira/browse/JBAS-3484


Modified: branches/Branch_4_0/security/build.xml
===================================================================
--- branches/Branch_4_0/security/build.xml	2006-08-07 19:31:59 UTC (rev 55377)
+++ branches/Branch_4_0/security/build.xml	2006-08-07 20:02:13 UTC (rev 55378)
@@ -76,6 +76,7 @@
       <path refid="oswego.concurrent.classpath"/>
       <path refid="javassist.classpath"/>
       <path refid="jboss.jbossxb.classpath"/>
+      <path refid="sun.javamail.classpath"/>
     </path>
 
     <!-- ======= -->

Modified: branches/Branch_4_0/security/src/main/org/jboss/test/UtilTestCase.java
===================================================================
--- branches/Branch_4_0/security/src/main/org/jboss/test/UtilTestCase.java	2006-08-07 19:31:59 UTC (rev 55377)
+++ branches/Branch_4_0/security/src/main/org/jboss/test/UtilTestCase.java	2006-08-07 20:02:13 UTC (rev 55378)
@@ -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