return new TestSuite(TestSoftReferenceObjectPool.class);
}
protected ObjectPool makeEmptyPool(int cap) {
return new SoftReferenceObjectPool(
new PoolableObjectFactory() {
int counter = 0;
public Object makeObject() { return String.valueOf(counter++); }
public void destroyObject(Object obj) { }
public boolean validateObject(Object obj) { return true; }
public void activateObject(Object obj) { }