db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kmars...@apache.org
Subject svn commit: r372708 [1/5] - in /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests: master/j9_foundation/ tests/jdbcapi/ tests/lang/ util/
Date Fri, 27 Jan 2006 03:06:18 GMT
Author: kmarsden
Date: Thu Jan 26 19:06:10 2006
New Revision: 372708

URL: http://svn.apache.org/viewcvs?rev=372708&view=rev
Log:
DERBY-398 enable tests for J2ME
Attaching a patch 'parameterMapping.diff' which changes the tests jdbcapi/parameterMapping.java
and lang/updatableResultSet.java to run in J2ME/CDC/FP. Changes are:

* In parameterMapping.java, SQL types DECIMAL and NUMERIC are mapped to the String class in
B3_GET_OBJECT for J2ME.
* When changing the tests, I have covered testing of SQL DECIMAL type. This is tested using
wrapper methods in BigDecimalHandler which use get/setString methods for J2ME. I have not
used the wrapper in cases where DECIMAL type is already being tested with get/set/updateXXX
methods of other JDBC types.
* The tests work the same way as before in non-J2ME environments.
* In JSR169, get/setUnicodeStream methods are not present. NoSuchMethodError exception is
used to handle these cases.
* New masters are needed for the tests. These are to account for absence of BigDecimal class
in J2ME and methods which are not present in JSR169.

Ran both the changed tests using Sun JDK1.4.2 (all frameworks) and IBM WCTME 5.7 j9_foundation.



Added:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/j9_foundation/parameterMapping.out
  (with props)
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/j9_foundation/updatableResultSet.out
  (with props)
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/util/SimpleProcedureTest.java
  (with props)
Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/parameterMapping.java
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/parameterMapping_app.properties
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/updatableResultSet.java
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/updatableResultSet_app.properties
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/util/BigDecimalHandler.java
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/util/ProcedureTest.java


Mime
View raw message