xml-rpc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject cvs commit: xml-rpc/src/test/org/apache/xmlrpc Base64Test.java
Date Fri, 27 Sep 2002 22:56:43 GMT
dlr         2002/09/27 15:56:43

  Modified:    src/test/org/apache/xmlrpc Base64Test.java
  Log:
  Stripped unnecessary methods, and made a few minor tweaks.
  
  Revision  Changes    Path
  1.3       +3 -19     xml-rpc/src/test/org/apache/xmlrpc/Base64Test.java
  
  Index: Base64Test.java
  ===================================================================
  RCS file: /home/cvs/xml-rpc/src/test/org/apache/xmlrpc/Base64Test.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -u -r1.2 -r1.3
  --- Base64Test.java	27 Sep 2002 22:53:31 -0000	1.2
  +++ Base64Test.java	27 Sep 2002 22:56:43 -0000	1.3
  @@ -59,10 +59,10 @@
   import junit.framework.TestSuite;
   
   /**
  - * Tests Base64.
  + * Tests our Base64 encoding/decoding implementation.
    *
    * @author <a href="mailto:dlr@finemaltcoding.com">Daniel Rall</a>
  - * @version $Id$
  + * @since 1.2
    */
   public class Base64Test
       extends TestCase 
  @@ -90,22 +90,6 @@
           return new TestSuite(Base64Test.class);
       }
   
  -    /**
  -     * Setup the test.
  -     */
  -    public void setUp() 
  -    {
  -        XmlRpc.setDebug(true);
  -    }
  -   
  -    /**
  -     * Tear down the test.
  -     */
  -    public void tearDown() 
  -    {
  -        XmlRpc.setDebug(false);
  -    }
  -
       public void testWriter()
           throws Exception
       {
  @@ -118,7 +102,7 @@
                   byte[] encoded = Base64.encode(raw);
                   byte[] decoded = Base64.decode(encoded);
                   assertTrue(bytesEqual(raw, decoded));
  -                assertEquals(TEST_DATA[i], new String(decoded));
  +                assertEquals(TEST_DATA[i], String.valueOf(decoded));
               }
           }
           catch (Exception e)
  
  
  

Mime
View raw message