db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Knut Anders Hatlen (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (DERBY-2091) Increase coverage for StatementEventsTest
Date Fri, 19 Jul 2013 10:42:51 GMT

     [ https://issues.apache.org/jira/browse/DERBY-2091?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Knut Anders Hatlen updated DERBY-2091:

    Attachment: d2091.diff

Some more tests for addStatementEventListener() and removeStatementEventListener() have been
added after this issue was reported, including some of those test cases suggested here. That
is, there are now tests for addStatementEventListener(null) and removeStatementEventListener(null).

The attached patch adds the rest of the test cases suggested in the issue description.
> Increase coverage for StatementEventsTest
> -----------------------------------------
>                 Key: DERBY-2091
>                 URL: https://issues.apache.org/jira/browse/DERBY-2091
>             Project: Derby
>          Issue Type: Improvement
>          Components: JDBC, Test
>    Affects Versions:
>            Reporter: Knut Anders Hatlen
>            Priority: Minor
>              Labels: derby_triage10_11
>         Attachments: d2091.diff
> StatementEventsTest doesn't test removeStatementEventListener(). A test case should be
added for that method. It would also be good to have test cases for
>  - addStatementEventListener(null)
>  - addStatementEventListener() twice with the same listener object
>  - addStatementEventListener() on a closed {Pooled,XA}Connection
>  - removeStatementEventListener(null)
>  - removeStatementEventListener() with a listener object that has not been added
>  - removeStatementEventListener() on a closed {Pooled,XA}Connection

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

View raw message