You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Simone Tripodi <si...@gmail.com> on 2010/12/20 23:13:16 UTC
Re: svn commit: r1051300 - /commons/proper/pool/trunk/src/test/org/apache/commons/pool2/impl/TestStackObjectPool.java
Cool!!! thanks for taking care!
http://people.apache.org/~simonetripodi/
http://www.99soft.org/
On Mon, Dec 20, 2010 at 11:05 PM, <se...@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-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org