You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by rl...@apache.org on 2003/08/26 18:12:47 UTC

cvs commit: jakarta-commons/validator/src/test/org/apache/commons/validator MultipleTests.java

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;