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] Created: (DERBY-4529) BlobMemTest and ClobMemTest don't call super.tearDown()
Date Fri, 29 Jan 2010 12:40:34 GMT
BlobMemTest and ClobMemTest don't call super.tearDown()

                 Key: DERBY-4529
                 URL: https://issues.apache.org/jira/browse/DERBY-4529
             Project: Derby
          Issue Type: Bug
          Components: Test
    Affects Versions:
            Reporter: Knut Anders Hatlen
            Assignee: Knut Anders Hatlen
            Priority: Minor

The tests memory.BlobMemTest and memory.ClobMemTest have a tearDown() method that looks like

    public void tearDown() throws SQLException {

They should also call super.tearDown() in order to perform some additional clean-up (like
closing of connection and statements). Since the tearDown() method in BaseJDBCTestCase will
also take care of calling rollback() on the connection, there's not actually any need for
a specialized tearDown() method in these tests, so I suggest we just remove the methods and
let the classes inherit the method from BaseJDBCTestCase.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message