Unit tests - test connections are not closed if an error happens in schema setup, leading in unpredictbale behavior in the following tests

Key: CAY-780
URL: https://issues.apache.org/cayenne/browse/CAY-780
Project: Cayenne
Issue Type: Bug
Components: Cayenne Core Library
Affects Versions: 3.0
Reporter: Andrus Adamchik
Assigned To: Andrus Adamchik
Priority: Minor
Fix For: 3.0

Static test DataSource built for the unit tests is not reset if an error occurs building schema. Ideally this shouldn't matter, but since the failing procedure is invoked over and over again for each individual test (as a result of the previous failure), open connections pile up resulting eventually in some DB errors that mask the actual failure cause. Need to handle it more gracefully.

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

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupdev @
postedApr 22, '07 at 3:45p
activeApr 22, '07 at 3:45p

1 user in discussion

Anonymous: 1 post



site design / logo © 2022 Grokbase