vmassol     02/01/27 09:35:50

  Modified:    src/framework/share/org/apache/cactus/client
                        AbstractHttpClient.java
                        AssertionFailedErrorWrapper.java
  Log:
  audit fix
  
  Revision  Changes    Path
  1.15      +4 -3      
jakarta-cactus/src/framework/share/org/apache/cactus/client/AbstractHttpClient.java
  
  Index: AbstractHttpClient.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-cactus/src/framework/share/org/apache/cactus/client/AbstractHttpClient.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- AbstractHttpClient.java   27 Jan 2002 16:56:48 -0000      1.14
  +++ AbstractHttpClient.java   27 Jan 2002 17:35:50 -0000      1.15
  @@ -74,7 +74,7 @@
    * @author <a href="mailto:[EMAIL PROTECTED]";>Vincent Massol</a>
    * @author <a href="mailto:[EMAIL PROTECTED]";>Jason Robertson</a>
    *
  - * @version $Id: AbstractHttpClient.java,v 1.14 2002/01/27 16:56:48 vmassol Exp $
  + * @version $Id: AbstractHttpClient.java,v 1.15 2002/01/27 17:35:50 vmassol Exp $
    */
   public abstract class AbstractHttpClient
   {
  @@ -177,7 +177,8 @@
        * @exception Throwable if an error occured in the test method or in the
        *                      redirector servlet.
        */
  -    private HttpURLConnection callRunTest(WebRequest theRequest) throws Throwable
  +    private HttpURLConnection callRunTest(WebRequest theRequest)
  +        throws Throwable
       {
           // Specify the service to call on the redirector side
           theRequest.addParameter(ServiceDefinition.SERVICE_NAME_PARAM,
  @@ -232,7 +233,7 @@
           // Read the results as a serialized object
           ObjectInputStream ois =
               new ObjectInputStream(resultConnection.getInputStream());
  -        WebTestResult result = (WebTestResult)ois.readObject();
  +        WebTestResult result = (WebTestResult) ois.readObject();
   
           ois.close();
   
  
  
  
  1.6       +6 -3      
jakarta-cactus/src/framework/share/org/apache/cactus/client/AssertionFailedErrorWrapper.java
  
  Index: AssertionFailedErrorWrapper.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-cactus/src/framework/share/org/apache/cactus/client/AssertionFailedErrorWrapper.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- AssertionFailedErrorWrapper.java  13 Jan 2002 15:08:35 -0000      1.5
  +++ AssertionFailedErrorWrapper.java  27 Jan 2002 17:35:50 -0000      1.6
  @@ -53,9 +53,10 @@
    */
   package org.apache.cactus.client;
   
  -import java.io.*;
  +import java.io.PrintStream;
  +import java.io.PrintWriter;
   
  -import junit.framework.*;
  +import junit.framework.AssertionFailedError;
   
   /**
    * Same as <code>ServletExceptionWrapper</code> except that this exception class
  @@ -64,7 +65,7 @@
    *
    * @author <a href="mailto:[EMAIL PROTECTED]";>Vincent Massol</a>
    *
  - * @version $Id: AssertionFailedErrorWrapper.java,v 1.5 2002/01/13 15:08:35 vmassol 
Exp $
  + * @version $Id: AssertionFailedErrorWrapper.java,v 1.6 2002/01/27 17:35:50 vmassol 
Exp $
    */
   public class AssertionFailedErrorWrapper extends AssertionFailedError
   {
  @@ -146,6 +147,8 @@
        * know the original server exception class.
        *
        * @param theClass the class to compare with the server exception class
  +     * @return true if the current exception class is of the same type as the
  +     *         class passed as parameter.
        */
       public boolean instanceOf(Class theClass)
       {
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to