db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kristian Waagan <Kristian.Waa...@Sun.COM>
Subject Re: [jira] Commented: (DERBY-993) junitTests cannot be run with J2ME
Date Mon, 20 Mar 2006 18:54:14 GMT
Myrna van Lunteren (JIRA) wrote:
>     [ 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.
>   
I just had a quick look on the patch dated 20th of March.
I don't see what the variable 'classname' is used for. I only see that 
it is assigned, but never used. Also, is the value correct?
It is: org.apache.derby.jdbc.Embedded.Simple.DataSource
Should it be: org.apache.derby.jdbc.EmbeddedSimpleDataSource ?


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


Mime
View raw message