6667686970717273747576
HashSet unique = new HashSet(); for (int x = 0; x < testSize * 2; ++x) { Integer i = (Integer) pool.lendObject(); assertFalse(unique.contains(i)); unique.add(i); } }
8687888990919293949596
} }; pool.configure(null); Object lended = pool.lendObject(); try { pool.lendObject(); fail();
90919293949596979899100
Object lended = pool.lendObject(); try { pool.lendObject(); fail(); } catch (RuntimeException e) { // expected }
108109110111112113114115116117118
// expected } try { pool.lendObject(); fail(); } catch (RuntimeException e) { // expected }
117118119120121122123124
// expected } pool.returnObject(lended); pool.lendObject(); } }
5354555657585960616263
7475767778798081828384
7879808182838485868788
96979899100101102103104105106
105106107108109110111112