db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Myrna van Lunteren (JIRA)" <derby-...@db.apache.org>
Subject [jira] Commented: (DERBY-993) junitTests cannot be run with J2ME
Date Mon, 20 Mar 2006 18:15:59 GMT
    [ http://issues.apache.org/jira/browse/DERBY-993?page=comments#action_12371118 ] 

Myrna van Lunteren commented on DERBY-993:
------------------------------------------

The patch dated 3/20 gives the following with wctme5.7_foundation in test SURTest.junit:
------------
java.sql.SQLException: org.apache.derby.jdbc.EmbeddedDriver is not registered with the JDBC
driver manager
	at org.apache.derby.jdbc.EmbeddedSimpleDataSource.findDriver(EmbeddedSimpleDataSource.java:434)
	at org.apache.derby.jdbc.EmbeddedSimpleDataSource.getConnection(EmbeddedSimpleDataSource.java:405)
	at org.apache.derby.jdbc.EmbeddedSimpleDataSource.getConnection(EmbeddedSimpleDataSource.java:372)
	at org.apache.derbyTesting.functionTests.util.BaseJDBCTestCase.getConnection(BaseJDBCTestCase.java:84)
	at org.apache.derbyTesting.functionTests.tests.jdbcapi.SURDataModelSetup.getNewConnection(SURDataModelSetup.java:174)
	at org.apache.derbyTesting.functionTests.tests.jdbcapi.SURDataModelSetup.setUp(SURDataModelSetup.java:140)
	at junit.extensions.TestSetup$1.protect(TestSetup.java:18)
	at junit.framework.TestResult.runProtected(TestResult.java:124)
	at junit.extensions.TestSetup.run(TestSetup.java:23)
	at junit.framework.TestSuite.runTest(TestSuite.java:208)
	at junit.framework.TestSuite.run(TestSuite.java:203)
	at junit.textui.TestRunner.doRun(TestRunner.java:116)
	at junit.textui.TestRunner.start(TestRunner.java:172)
	at junit.textui.TestRunner.main(TestRunner.java:138)
-----------------------
let me see what I can do.
Also, it doesn't have the fix to TestUtil (which I erroneously added to DERBY-949), so I'll
add that as well.


> junitTests cannot be run with J2ME
> ----------------------------------
>
>          Key: DERBY-993
>          URL: http://issues.apache.org/jira/browse/DERBY-993
>      Project: Derby
>         Type: Test
>   Components: Test
>     Versions: 10.2.0.0
>  Environment: using J2ME jvm 
>     Reporter: Myrna van Lunteren
>     Assignee: Myrna van Lunteren
>     Priority: Minor
>  Attachments: DERBY-993-skipwfoundation.diff, DERBY-993-skipwfoundation.stat, DERBY-993_2006_03_18.diff,
DERBY-993_2006_03_20.diff
>
> The test suite junitTests/LangSuite, and the .junit tests jdbcapi/SURTest.java and jdbcapi/SURQueryMixTest.java
fail with J2ME, because it uses java.sql.Driver.
> There should be a way to use java.sql.DataSource instead of the Driver mechanism.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message