db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Myrna van Lunteren (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DERBY-5374) converted ij5Test fails with weme6.2 (CDC/Foundation): junit.framework.ComparisonFailure: Output at line 1 expected:<CONNECTION0* - jdbc:derby:wombat> but was:<ERROR XJ004: Database '' not found.>
Date Mon, 08 Aug 2011 19:14:27 GMT

    [ https://issues.apache.org/jira/browse/DERBY-5374?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13081135#comment-13081135
] 

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

I've found out the difference between the nightly run and what I was doing on my laptop; in
the nightly run it was already having -Dij.dataSource=org.apache.derby.jdbc.EmbeddedSimpleDataSource
set.
Without that, like on my laptop, ij will try to connect using java.sql.Driver subclasses,
including using a getURL method that's not available on this jvm.

If memory serves me right, with ij.showNoConnectionsAtStart=false (so, show connections at
start, if I understand this double negation) we get a different output between dataSources
and Driver connections.
I'm experimenting to see if there's a way to get the same output still for running with J2ME/CDC
and full-fledged jvms, but no luck so far.


> converted ij5Test fails with weme6.2 (CDC/Foundation): junit.framework.ComparisonFailure:
Output at line 1 expected:<CONNECTION0* - 	jdbc:derby:wombat> but was:<ERROR XJ004:
Database '' not found.>
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-5374
>                 URL: https://issues.apache.org/jira/browse/DERBY-5374
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.9.0.0
>         Environment: windows XP, with weme6.2 (IBM's CDC/Foundation implementation)
>            Reporter: Myrna van Lunteren
>
> The newly converted (to junit) test ij5Test fails with weme 6.2:
> ij5(org.apache.derbyTesting.functionTests.tests.tools.ij5Test)junit.framework.ComparisonFailure:
Output at line 1 expected:<CONNECTION0* - 	jdbc:derby:wombat> but was:<ERROR XJ004:
Database '' not found.>
> 	at junit.framework.AssertionFailedError.<init>(AssertionFailedError.java:11)
> 	at junit.framework.ComparisonFailure.<init>(ComparisonFailure.java:19)
> 	at org.apache.derbyTesting.functionTests.util.CanonTestCase.compareCanon(CanonTestCase.java:109)
> 	at org.apache.derbyTesting.functionTests.util.ScriptTestCase.runTest(ScriptTestCase.java:204)
> 	at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:112)
> 	at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
> 	at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
> 	at junit.extensions.TestSetup.run(TestSetup.java:23)
> 	at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
> 	at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
> 	at junit.extensions.TestSetup.run(TestSetup.java:23)
> 	at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
> This is likely a similar problem as described in DERBY-5373 (re importExportIJ). 
> see also (until cleaned up at some point in the future): http://people.apache.org/~myrnavl/derby_test_results/main/windows/testlog/weme6.2/1152992-suites.All_diff.txt

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message