Return-Path: Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 96613 invoked by uid 500); 26 Aug 2003 16:19:47 -0000 Received: (qmail 96609 invoked from network); 26 Aug 2003 16:19:47 -0000 Received: from unknown (HELO minotaur.apache.org) (209.237.227.194) by daedalus.apache.org with SMTP; 26 Aug 2003 16:19:47 -0000 Received: (qmail 97084 invoked by uid 1182); 26 Aug 2003 16:12:47 -0000 Date: 26 Aug 2003 16:12:47 -0000 Message-ID: <20030826161247.97083.qmail@minotaur.apache.org> From: rleland@apache.org To: jakarta-commons-cvs@apache.org Subject: cvs commit: jakarta-commons/validator/src/test/org/apache/commons/validator MultipleTests.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N rleland 2003/08/26 09:12:47 Modified: validator/src/test/org/apache/commons/validator MultipleTests.java Log: Replace use of deprecated API elements with current API calls Revision Changes Path 1.12 +8 -8 jakarta-commons/validator/src/test/org/apache/commons/validator/MultipleTests.java Index: MultipleTests.java =================================================================== RCS file: /home/cvs/jakarta-commons/validator/src/test/org/apache/commons/validator/MultipleTests.java,v retrieving revision 1.11 retrieving revision 1.12 diff -u -r1.11 -r1.12 --- MultipleTests.java 26 Aug 2003 15:18:56 -0000 1.11 +++ MultipleTests.java 26 Aug 2003 16:12:47 -0000 1.12 @@ -308,7 +308,7 @@ Validator validator = new Validator(resources, FORM_KEY); // add the name bean to the validator as a resource // for the validations to be performed on. - validator.addResource(Validator.BEAN_KEY, name); + validator.setParameter(Validator.BEAN_PARAM, name); // Get results of the validation. ValidatorResults results = null; @@ -346,7 +346,7 @@ Validator validator = new Validator(resources, FORM_KEY); // add the name bean to the validator as a resource // for the validations to be performed on. - validator.addResource(Validator.BEAN_KEY, name); + validator.setParameter(Validator.BEAN_PARAM, name); // Get results of the validation. ValidatorResults results = null; @@ -384,7 +384,7 @@ Validator validator = new Validator(resources, FORM_KEY); // add the name bean to the validator as a resource // for the validations to be performed on. - validator.addResource(Validator.BEAN_KEY, name); + validator.setParameter(Validator.BEAN_PARAM, name); // Get results of the validation. ValidatorResults results = null; @@ -423,7 +423,7 @@ Validator validator = new Validator(resources, FORM_KEY); // add the name bean to the validator as a resource // for the validations to be performed on. - validator.addResource(Validator.BEAN_KEY, name); + validator.setParameter(Validator.BEAN_PARAM, name); // Get results of the validation. ValidatorResults results = null;