dirkv       01/08/09 06:30:46

  Modified:    src/tests/transaction PutTestCase.java
  Log:
  replace depricated methods
  
  Revision  Changes    Path
  1.3       +6 -6      jakarta-slide/src/tests/transaction/PutTestCase.java
  
  Index: PutTestCase.java
  ===================================================================
  RCS file: /home/cvs/jakarta-slide/src/tests/transaction/PutTestCase.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- PutTestCase.java  2001/05/01 21:30:14     1.2
  +++ PutTestCase.java  2001/08/09 13:30:46     1.3
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-slide/src/tests/transaction/PutTestCase.java,v 1.2 
2001/05/01 21:30:14 remm Exp $
  - * $Revision: 1.2 $
  - * $Date: 2001/05/01 21:30:14 $
  + * $Header: /home/cvs/jakarta-slide/src/tests/transaction/PutTestCase.java,v 1.3 
2001/08/09 13:30:46 dirkv Exp $
  + * $Revision: 1.3 $
  + * $Date: 2001/08/09 13:30:46 $
    *
    * ====================================================================
    *
  @@ -67,7 +67,7 @@
   import junit.framework.TestCase;
   import junit.framework.TestSuite;
   
  -import junit.ui.TestRunner;
  +// import junit.ui.TestRunner;
   
   import org.apache.commons.httpclient.Cookie;
   import org.apache.commons.httpclient.Header;
  @@ -89,7 +89,7 @@
    * Test cases for the PUT method
    *
    * @author Juergen Pill
  - * @version $Revision: 1.2 $
  + * @version $Revision: 1.3 $
    */
   public class PutTestCase extends TestCase {
   
  @@ -240,7 +240,7 @@
                        client.startSession("localhost", portNumber);
                        client.setCredentials(new Credentials("guest", "guest"));
                        pm.setPath( resourceName );
  -                     pm.sendData( new StringBufferInputStream(fileContent));
  +                     pm.sendData( new ByteArrayInputStream(fileContent.getBytes()));
                        client.executeMethod( pm );
                        
                        System.out.println( "PUT  to " + resourceName + " : " + 
pm.getStatusCode() +
  
  
  

Reply via email to