geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rickmcgu...@apache.org
Subject svn commit: r470000 - /geronimo/server/trunk/modules/geronimo-tomcat/src/test/java/org/apache/geronimo/tomcat/ContainerTest.java
Date Wed, 01 Nov 2006 17:32:02 GMT
Author: rickmcguire
Date: Wed Nov  1 09:32:01 2006
New Revision: 470000

URL: http://svn.apache.org/viewvc?view=rev&rev=470000
Log:
GERONIMO-1833 Non-public Sun classes dependencies in tests


Modified:
    geronimo/server/trunk/modules/geronimo-tomcat/src/test/java/org/apache/geronimo/tomcat/ContainerTest.java

Modified: geronimo/server/trunk/modules/geronimo-tomcat/src/test/java/org/apache/geronimo/tomcat/ContainerTest.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-tomcat/src/test/java/org/apache/geronimo/tomcat/ContainerTest.java?view=diff&rev=470000&r1=469999&r2=470000
==============================================================================
--- geronimo/server/trunk/modules/geronimo-tomcat/src/test/java/org/apache/geronimo/tomcat/ContainerTest.java
(original)
+++ geronimo/server/trunk/modules/geronimo-tomcat/src/test/java/org/apache/geronimo/tomcat/ContainerTest.java
Wed Nov  1 09:32:01 2006
@@ -23,7 +23,7 @@
 import java.net.URL;
 
 import org.apache.geronimo.tomcat.app.MockWebServiceContainer;
-import sun.misc.BASE64Encoder;
+import org.apache.geronimo.util.encoders.Base64;
 
 
 /**
@@ -78,7 +78,7 @@
 
         //Authenticate
         connection = (HttpURLConnection) new URL("http://localhost:8181" + contextPath).openConnection();
-        String authentication = (new BASE64Encoder()).encode(("alan:starcraft").getBytes());
+        String authentication = new String(Base64.encode("alan:starcraft".getBytes()));
         connection.setRequestProperty("Authorization", "Basic " + authentication);
         try {
             BufferedReader reader = new BufferedReader(new InputStreamReader(connection.getInputStream()));



Mime
View raw message