db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tfisc...@apache.org
Subject svn commit: r1364545 - /db/torque/torque4/trunk/torque-test/src/test/java/org/apache/torque/datatypes/BooleanIntCharTest.java
Date Mon, 23 Jul 2012 09:05:00 GMT
Author: tfischer
Date: Mon Jul 23 09:05:00 2012
New Revision: 1364545

URL: http://svn.apache.org/viewvc?rev=1364545&view=rev
Log:
fixed booleanInt/Char tests for postgresql
- remove second db preparation in test
- constistent usage of native and boolean values

Modified:
    db/torque/torque4/trunk/torque-test/src/test/java/org/apache/torque/datatypes/BooleanIntCharTest.java

Modified: db/torque/torque4/trunk/torque-test/src/test/java/org/apache/torque/datatypes/BooleanIntCharTest.java
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-test/src/test/java/org/apache/torque/datatypes/BooleanIntCharTest.java?rev=1364545&r1=1364544&r2=1364545&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-test/src/test/java/org/apache/torque/datatypes/BooleanIntCharTest.java
(original)
+++ db/torque/torque4/trunk/torque-test/src/test/java/org/apache/torque/datatypes/BooleanIntCharTest.java
Mon Jul 23 09:05:00 2012
@@ -651,8 +651,6 @@ public class BooleanIntCharTest extends 
     {
         // prepare
         fillTables();
-        // prepare
-        fillTables();
         ColumnValues columnValues
                 = new ColumnValues(BintBcharValuePeer.getTableMap());
         columnValues.put(
@@ -660,10 +658,10 @@ public class BooleanIntCharTest extends 
                 new JdbcTypedValue("new", Types.VARCHAR));
         columnValues.put(
                 BintBcharValuePeer.BINT_VALUE,
-                new JdbcTypedValue(1, Types.BIT));
+                new JdbcTypedValue(true, Types.BIT));
         columnValues.put(
                 BintBcharValuePeer.BCHAR_VALUE,
-                new JdbcTypedValue("Y", Types.BIT));
+                new JdbcTypedValue(false, Types.BIT));
         columnValues.put(
                 BintBcharValuePeer.BINT_OBJECT_VALUE,
                 new JdbcTypedValue(null, Types.BIT));



---------------------------------------------------------------------
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