HHH-11157 : Fix failing WithClauseTest

(cherry picked from commit 877a05213c)
This commit is contained in:
Christian Beikov 2016-10-24 16:14:11 +02:00 committed by Gail Badner
parent 908d0acdd5
commit c30c8d9dd7
1 changed files with 17 additions and 12 deletions

View File

@ -194,6 +194,7 @@ public class WithClauseTest extends BaseCoreFunctionalTestCase {
public void testWithClauseAsNonSubqueryWithKey() {
rebuildSessionFactory( Collections.singletonMap( AvailableSettings.COLLECTION_JOIN_SUBQUERY, "false" ) );
try {
TestData data = new TestData();
data.prepare();
@ -210,6 +211,10 @@ public class WithClauseTest extends BaseCoreFunctionalTestCase {
s.close();
data.cleanup();
} finally {
// Rebuild to reset the properties
rebuildSessionFactory();
}
}
private class TestData {