db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel John Debrunner (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DERBY-2464) convert lang/ShutdownDatabase.java to junit
Date Wed, 21 Mar 2007 20:42:32 GMT

    [ 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:


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:
>            Reporter: Manjula Kutty
>         Assigned To: Manjula Kutty
>            Priority: Trivial
>             Fix For:
>         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.

View raw message