Life-Cycle Annotations
component extends="coldbox.system.testing.BaseTestCase"{
/**
* @aroundEach
*/
function wrapInDBTransaction( spec, suite ){
transaction action="begin" {
try {
arguments.spec.body();
} catch (any e) {
rethrow;
} finally {
transaction action="rollback"
}
}
}
}Last updated
Was this helpful?