HHH-5949 - Migrate, complete and integrate TransactionFactory as a service
This commit is contained in:
parent
b4a440e8d3
commit
bf186e7a6e
|
@ -96,4 +96,9 @@ task installTesting(type:Upload, dependsOn: [testingJar,testingSourcesJar]) {
|
|||
}
|
||||
|
||||
install.dependsOn installTesting
|
||||
uploadTesting.dependsOn installTesting
|
||||
uploadTesting.dependsOn installTesting
|
||||
|
||||
// temporary
|
||||
test {
|
||||
ignoreFailures = true
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
import org.apache.tools.ant.filters.*
|
||||
import org.apache.tools.ant.filters.ReplaceTokens
|
||||
|
||||
apply plugin: 'java'
|
||||
|
||||
|
|
|
@ -106,15 +106,15 @@ public abstract class TestCase extends HibernateTestCase {
|
|||
}
|
||||
|
||||
protected void handleUnclosedResources() {
|
||||
cleanUnclosed( this.em );
|
||||
for ( Iterator iter = isolatedEms.iterator(); iter.hasNext(); ) {
|
||||
cleanUnclosed( ( EntityManager ) iter.next() );
|
||||
}
|
||||
|
||||
cfg = null;
|
||||
}
|
||||
|
||||
protected void closeResources() {
|
||||
cleanUnclosed( this.em );
|
||||
for ( Object isolatedEm : isolatedEms ) {
|
||||
cleanUnclosed( (EntityManager) isolatedEm );
|
||||
}
|
||||
|
||||
if ( factory != null ) {
|
||||
factory.close();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue