    1   package baseCode.io;
    2
    3   import junit.framework.TestCase;
    4   import baseCode.io.StringConverter;
    5   import baseCode.io.ByteArrayConverter;
    6
    7   //import javax.sql.rowset.serial;
    8
    9   /***
    10   * $Id: TestStringConverter.java,v 1.2 2005/04/08 00:21:52 pavlidis Exp $
    11   */
    12  public class TestStringConverter extends TestCase {
    13     StringConverter sc;
    14     ByteArrayConverter bac;
    15
    16     /*
    17      * @see TestCase#setUp()
    18      */
    19     protected void setUp() throws Exception {
    20        super.setUp();
    21        sc = new StringConverter();
    22        bac = new ByteArrayConverter();
    23     }
    24
    25     /*
    26      * @see TestCase#tearDown()
    27      */
    28     protected void tearDown() throws Exception {
    29        super.tearDown();
    30     }
    31
    32     /***
    33      *
    34      *
    35      */
    36     public void testStringToBytes() {
    37        //System.err.println(" CONVERTING STRING TO BYTES ");
    38
    39        byte[] actualReturn = sc.StringArrayToBytes( null );
    40        byte[] expectedValue = actualReturn;
    41  //      for ( int i = 0; i < actualReturn.length; i++ ) {
    42  //         //System.err.println("actualReturn:["+i+"]"+ actualReturn[i]);//new
    43  //         // Integer(actualReturn[i]).toBinaryString(actualReturn[i]));
    44  //         assertEquals( "return value", expectedValue[i], actualReturn[i], 0 );
    45  //      }
    46     }
    47
    48     /***
    49      *
    50      *
    51      */
    52     public void testStringToDoubles() {
    53        //System.err.println(" CONVERTING STRING TO DOUBLES ");
    54
    55        double[] actualReturn = sc.StringToDoubles( null );
    56        double[] expectedValue = actualReturn;
    57  //      for ( int i = 0; i < actualReturn.length; i++ ) {
    58  //         //System.err.println("actualReturn:["+i+"]"+ actualReturn[i]);//new
    59  //         // Integer(actualReturn[i]).toBinaryString(actualReturn[i]));
    60  //         //assertEquals( "return value", expectedValue[i], actualReturn[i], 0);
    61  //      }
    62     }
    63     /***
    64      *
    65      *
    66      */
    67
    68  }