Skip to content

Commit 89fdf46

Browse files
committed
HHH-7666 Replace unit tests' use of configuration()
1 parent 38b5367 commit 89fdf46

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hibernate-core/src/test/java/org/hibernate/test/stats/StatsTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public void testCollectionFetchVsLoad() throws Exception {
111111
coll.setFetchStyle( FetchStyle.JOIN );
112112
// TODO: Is there a way to set this on the metamodel?
113113
// coll.setLazy(false);
114-
SessionFactory sf = configuration().buildSessionFactory();
114+
SessionFactory sf = sessionFactory();
115115
stats = sf.getStatistics();
116116
stats.clear();
117117
stats.setStatisticsEnabled(true);
@@ -135,7 +135,7 @@ public void testCollectionFetchVsLoad() throws Exception {
135135
coll.setFetchStyle( FetchStyle.SELECT );
136136
// TODO: Is there a way to set this on the metamodel?
137137
// coll.setLazy(false);
138-
sf = configuration().buildSessionFactory();
138+
sf = sessionFactory();
139139
stats = sf.getStatistics();
140140
stats.clear();
141141
stats.setStatisticsEnabled(true);

0 commit comments

Comments
 (0)