Return-Path: Delivered-To: apmail-commons-dev-archive@www.apache.org Received: (qmail 37704 invoked from network); 20 Dec 2010 22:13:44 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 20 Dec 2010 22:13:44 -0000 Received: (qmail 61269 invoked by uid 500); 20 Dec 2010 22:13:43 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 61173 invoked by uid 500); 20 Dec 2010 22:13:43 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 61165 invoked by uid 99); 20 Dec 2010 22:13:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Dec 2010 22:13:43 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of simone.tripodi@gmail.com designates 74.125.82.49 as permitted sender) Received: from [74.125.82.49] (HELO mail-ww0-f49.google.com) (74.125.82.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Dec 2010 22:13:38 +0000 Received: by wwb17 with SMTP id 17so3551867wwb.6 for ; Mon, 20 Dec 2010 14:13:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=gU9yfByN0Rr456N4vffHM88ko/MWV9U7Z8XDgiHlB58=; b=osii7/0PQra88jbf6kOsbHjCd3tK7XEfH/POut+e0oJisETC4F0J2L7v7sHbPZmMsl TNXEqJylMm0qu1ejwg86a9O60sh9kmMNJYEGtKjm/ETEwtq8uvHCXVle6gY0n8plFraZ BVn6ULVo6w5yfy3qeeD+BPm/av5AqTHHvbXNA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=sN2upbsk5KD6Wg10ptD7ofukQhJqYZN9D/kPfuowYHmyglDXzA9eowp/p0SU3+ywfh s4kAFqeF8BdLSyZJPZ+e1NOxT4k8zkNnKKekQEzrUeZN8wwi+mIcUTrAb6AeGd0162+k 8j7pW0l+bumF6NZAfjxkuWjJEyhz4j7Z39mek= MIME-Version: 1.0 Received: by 10.227.98.94 with SMTP id p30mr2915480wbn.152.1292883196561; Mon, 20 Dec 2010 14:13:16 -0800 (PST) Received: by 10.227.69.148 with HTTP; Mon, 20 Dec 2010 14:13:16 -0800 (PST) In-Reply-To: <20101220220542.C8D6523889EB@eris.apache.org> References: <20101220220542.C8D6523889EB@eris.apache.org> Date: Mon, 20 Dec 2010 23:13:16 +0100 Message-ID: Subject: Re: svn commit: r1051300 - /commons/proper/pool/trunk/src/test/org/apache/commons/pool2/impl/TestStackObjectPool.java From: Simone Tripodi To: dev@commons.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cool!!! thanks for taking care! http://people.apache.org/~simonetripodi/ http://www.99soft.org/ On Mon, Dec 20, 2010 at 11:05 PM, wrote: > Author: sebb > Date: Mon Dec 20 22:05:42 2010 > New Revision: 1051300 > > URL: http://svn.apache.org/viewvc?rev=3D1051300&view=3Drev > Log: > Add some IAE tests for null ctor parameters > > Modified: > =C2=A0 =C2=A0commons/proper/pool/trunk/src/test/org/apache/commons/pool2/= impl/TestStackObjectPool.java > > Modified: commons/proper/pool/trunk/src/test/org/apache/commons/pool2/imp= l/TestStackObjectPool.java > URL: http://svn.apache.org/viewvc/commons/proper/pool/trunk/src/test/org/= apache/commons/pool2/impl/TestStackObjectPool.java?rev=3D1051300&r1=3D10512= 99&r2=3D1051300&view=3Ddiff > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > --- commons/proper/pool/trunk/src/test/org/apache/commons/pool2/impl/Test= StackObjectPool.java (original) > +++ commons/proper/pool/trunk/src/test/org/apache/commons/pool2/impl/Test= StackObjectPool.java Mon Dec 20 22:05:42 2010 > @@ -174,6 +174,23 @@ public class TestStackObjectPool extends > =C2=A0 =C2=A0 =C2=A0 =C2=A0 } > =C2=A0 =C2=A0 } > > + =C2=A0 =C2=A0@Test(expected=3DIllegalArgumentException.class) > + =C2=A0 =C2=A0public void testNullFactory1(){ > + =C2=A0 =C2=A0 =C2=A0 =C2=A0new StackObjectPool(null); > + =C2=A0 =C2=A0} > + > + =C2=A0 =C2=A0@Test(expected=3DIllegalArgumentException.class) > + =C2=A0 =C2=A0public void testNullFactory2(){ > + =C2=A0 =C2=A0 =C2=A0 =C2=A0new StackObjectPool(null, null); > + =C2=A0 =C2=A0} > + > + =C2=A0 =C2=A0@Test(expected=3DIllegalArgumentException.class) > + =C2=A0 =C2=A0public void testNullFactory3(){ > + =C2=A0 =C2=A0 =C2=A0 =C2=A0PoolableObjectFactory factory =3D n= ew SelectiveFactory(); > + =C2=A0 =C2=A0 =C2=A0 =C2=A0new StackObjectPool(factory, null); > + =C2=A0 =C2=A0} > + > + =C2=A0 =C2=A0/** > =C2=A0 =C2=A0 /** > =C2=A0 =C2=A0 =C2=A0* Verify that out of range constructor arguments are = ignored. > =C2=A0 =C2=A0 =C2=A0*/ > > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org