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 66
77import org .hibernate .engine .spi .InstanceIdentity ;
88import org .hibernate .internal .util .collections .InstanceIdentityMap ;
9+ import org .hibernate .testing .orm .junit .Jira ;
910import org .junit .jupiter .api .AfterEach ;
1011import org .junit .jupiter .api .Test ;
1112
@@ -99,4 +100,15 @@ public void testSets() {
99100 assertThat ( testMap .values () ).hasSize ( 100 ).containsAll ( map .values () );
100101 assertThat ( testMap .entrySet () ).hasSize ( 100 ).containsAll ( map .entrySet () );
101102 }
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+
102114}
You can’t perform that action at this time.
0 commit comments