db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject cvs commit: db-torque/src/test/org/apache/torque/util SqlExpressionTest.java
Date Wed, 12 May 2004 12:54:39 GMT
seade       2004/05/12 05:54:39

  Modified:    src/test/org/apache/torque/util Tag: TORQUE_3_1_BRANCH
                        SqlExpressionTest.java
  Log:
  Fix test that was failing under jdk 1.3.
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.2.2.2   +13 -2     db-torque/src/test/org/apache/torque/util/SqlExpressionTest.java
  
  Index: SqlExpressionTest.java
  ===================================================================
  RCS file: /home/cvs/db-torque/src/test/org/apache/torque/util/SqlExpressionTest.java,v
  retrieving revision 1.2.2.1
  retrieving revision 1.2.2.2
  diff -u -r1.2.2.1 -r1.2.2.2
  --- SqlExpressionTest.java	29 Feb 2004 23:19:09 -0000	1.2.2.1
  +++ SqlExpressionTest.java	12 May 2004 12:54:39 -0000	1.2.2.2
  @@ -84,7 +84,18 @@
           String[] values = new String[] { "42", "43", "44" };
           String result = SqlExpression.buildIn("COL", values, SqlEnum.IN, 
                   true, db);
  -        assertEquals(result, "COL IN ('42','43','44')");
  +        // It seems the order of the values is different for jdk1.3 vs 1.4
  +        // In any case, the order is not significant.
  +        if (result.equals("COL IN ('42','43','44')"))
  +        {
  +            // jdk 1.4
  +            assertEquals(result, "COL IN ('42','43','44')");
  +        }
  +        else
  +        {
  +            // jdk 1.3
  +            assertEquals(result, "COL IN ('43','44','42')");
  +        }
   	}
       
       public void testLargeBuildInStringObjectSqlEnumbooleanDB()
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Mime
View raw message