137138139140141142143144145146147
gc(); assertEquals(0, pool.getRemoveCount()); assertEquals(0, MockBean.finalizers); pool.destroy(); gc(); assertEquals(20, pool.getRemoveCount()); assertEquals(20, MockBean.finalizers);
185186187188189190191192193194195
238239240241242243244245246247248
gc(); assertEquals(200, pool.getRemoveCount()); assertEquals(200, MockBean.finalizers); pool.destroy(); gc(); assertEquals(220, pool.getRemoveCount()); assertEquals(220, MockBean.finalizers);
7071727374757677787980
gc(); assertEquals(0, pool.getRemoveCount()); assertEquals(0, MockBean.finalizers); pool.destroy(); gc(); assertEquals(1, pool.getRemoveCount()); assertEquals(1, MockBean.finalizers); }
113114115116117118119120121122123
161162163164165166167168169170171
214215216217218219220221222223224