[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-1644) DBUnit integration for SeamTest
Christian Bauer (JIRA)
jira-events at lists.jboss.org
Mon Aug 6 05:42:49 EDT 2007
[ http://jira.jboss.com/jira/browse/JBSEAM-1644?page=comments#action_12371185 ]
Christian Bauer commented on JBSEAM-1644:
-----------------------------------------
Another bug, leaks connections. Replace the executeOperations() method with:
private void executeOperations(List<DataSetOperation> list) {
IDatabaseConnection con = null;
try {
con = getConnection();
disableReferentialIntegrity(con);
for (DataSetOperation op : list) {
log.info("executing DBUnit operation: " + op);
op.execute(con);
}
enableReferentialIntegrity(con);
} finally {
if (con != null) {
try {
con.close();
} catch (Exception ex) {
ex.printStackTrace(System.err);
}
}
}
}
> DBUnit integration for SeamTest
> -------------------------------
>
> Key: JBSEAM-1644
> URL: http://jira.jboss.com/jira/browse/JBSEAM-1644
> Project: JBoss Seam
> Issue Type: Feature Request
> Components: Test Harness
> Reporter: Christian Bauer
> Attachments: DBUnitSeamTest.java
>
>
> Attached a class I wrote to handle my unit tests which require some baseline data in the database. If we want a compile-time dependency on DBUnit in Seam, we should add it to the Seam distribution.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list