File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
hibernate-core/src/test/java/org/hibernate/orm/test/util Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 6
6
7
7
import org .hibernate .engine .spi .InstanceIdentity ;
8
8
import org .hibernate .internal .util .collections .InstanceIdentityMap ;
9
+ import org .hibernate .testing .orm .junit .Jira ;
9
10
import org .junit .jupiter .api .AfterEach ;
10
11
import org .junit .jupiter .api .Test ;
11
12
@@ -99,4 +100,15 @@ public void testSets() {
99
100
assertThat ( testMap .values () ).hasSize ( 100 ).containsAll ( map .values () );
100
101
assertThat ( testMap .entrySet () ).hasSize ( 100 ).containsAll ( map .entrySet () );
101
102
}
103
+
104
+ @ Test
105
+ @ Jira (value = "https://hibernate.atlassian.net/browse/HHH-19582" )
106
+ public void testNullPage () {
107
+ final TestInstance i1 = new TestInstance ( 9999 );
108
+ testMap .put ( i1 , "instance_X" );
109
+
110
+ testMap .clear ();
111
+ assertThat ( testMap ).isEmpty ();
112
+ }
113
+
102
114
}
You can’t perform that action at this time.
0 commit comments