[
https://issues.apache.org/jira/browse/DERBY-2464?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12482909
]
Daniel John Debrunner commented on DERBY-2464:
----------------------------------------------
It looks like the test is just using a single database.
So could the test use the TestConfiguration.singleUseDatabaseDecorator instead
of the additional database decorator?
This would mean that you wouldn't need a reopenConnection() method, though I
don't think the test does as it stands.
I'm not sure why the test can't just use openConnection(dbName) again.
Then going further, I wonder why the default database cannot be used? The
single use databases are for when the test leaves the database in a state such
that it cannot be re-used, does this test do that?
The assertGetIntEquals() probably needs some cleanup, if an exception is thrown
no failure will be generated.
Can you use instead the existing:
JDBC.assertSingleValueResultSet()
which I think is what you are trying to test for.
> convert lang/ShutdownDatabase.java to junit
> -------------------------------------------
>
> Key: DERBY-2464
> URL: https://issues.apache.org/jira/browse/DERBY-2464
> Project: Derby
> Issue Type: Test
> Components: Test
> Affects Versions: 10.3.0.0
> Reporter: Manjula Kutty
> Assigned To: Manjula Kutty
> Priority: Trivial
> Fix For: 10.3.0.0
>
> Attachments: DERBY-2464_diff_03_21.txt, DERBY-2464_stat_03_21.txt
>
>
> Place holder for the conversion of lang/ShutdownDatabase.java to junit
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.