Cool!!! thanks for taking care! http://people.apache.org/~simonetripodi/ http://www.99soft.org/
On Mon, Dec 20, 2010 at 11:05 PM, <s...@apache.org> wrote: > Author: sebb > Date: Mon Dec 20 22:05:42 2010 > New Revision: 1051300 > > URL: http://svn.apache.org/viewvc?rev=1051300&view=rev > Log: > Add some IAE tests for null ctor parameters > > Modified: > > commons/proper/pool/trunk/src/test/org/apache/commons/pool2/impl/TestStackObjectPool.java > > Modified: > commons/proper/pool/trunk/src/test/org/apache/commons/pool2/impl/TestStackObjectPool.java > URL: > http://svn.apache.org/viewvc/commons/proper/pool/trunk/src/test/org/apache/commons/pool2/impl/TestStackObjectPool.java?rev=1051300&r1=1051299&r2=1051300&view=diff > ============================================================================== > --- > commons/proper/pool/trunk/src/test/org/apache/commons/pool2/impl/TestStackObjectPool.java > (original) > +++ > commons/proper/pool/trunk/src/test/org/apache/commons/pool2/impl/TestStackObjectPool.java > Mon Dec 20 22:05:42 2010 > @@ -174,6 +174,23 @@ public class TestStackObjectPool extends > } > } > > + �...@test(expected=IllegalArgumentException.class) > + public void testNullFactory1(){ > + new StackObjectPool<Integer>(null); > + } > + > + �...@test(expected=IllegalArgumentException.class) > + public void testNullFactory2(){ > + new StackObjectPool<Integer>(null, null); > + } > + > + �...@test(expected=IllegalArgumentException.class) > + public void testNullFactory3(){ > + PoolableObjectFactory<Integer> factory = new SelectiveFactory(); > + new StackObjectPool<Integer>(factory, null); > + } > + > + /** > /** > * Verify that out of range constructor arguments are ignored. > */ > > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org