jvanzyl     00/11/05 17:22:53

  Modified:    src/java/org/apache/velocity/test/provider TestProvider.java
  Log:
  - adding a method to the provider that takes an integer as an
    argument.
  
  Revision  Changes    Path
  1.4       +13 -1     
jakarta-velocity/src/java/org/apache/velocity/test/provider/TestProvider.java
  
  Index: TestProvider.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-velocity/src/java/org/apache/velocity/test/provider/TestProvider.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- TestProvider.java 2000/11/01 19:35:22     1.3
  +++ TestProvider.java 2000/11/06 01:22:52     1.4
  @@ -62,7 +62,7 @@
    * is traversed and dynamic content generated.
    *
    * @author <a href="mailto:[EMAIL PROTECTED]">Jason van Zyl</a>
  - * @version $Id: TestProvider.java,v 1.3 2000/11/01 19:35:22 jvanzyl Exp $
  + * @version $Id: TestProvider.java,v 1.4 2000/11/06 01:22:52 jvanzyl Exp $
    */
   public class TestProvider
   {
  @@ -245,6 +245,18 @@
       {
           return person.getName();
       }        
  +
  +    /**
  +     * Chop i characters off the end of a string.
  +     *
  +     * @param string String to chop.
  +     * @param i Number of characters to chop.
  +     * @return String with processed answer.
  +     */
  +    public static String chop(String string, int i)
  +    {
  +        return(string.substring(0, string.length() - i));
  +    }
   
       /*
        * This can't have the signature
  
  
  

Reply via email to