geirm       01/03/20 11:13:35

  Modified:    src/java/org/apache/velocity/test ConfigurationTestCase.java
                        MethodInvocationExceptionTest.java
               src/java/org/apache/velocity/test/misc Test.java
  Log:
  MethodInvcation :
  
  removed a stupid print...
  
  ConfigurationTest :
  
  added test for the escaped commas
  
  Revision  Changes    Path
  1.3       +9 -1      
jakarta-velocity/src/java/org/apache/velocity/test/ConfigurationTestCase.java
  
  Index: ConfigurationTestCase.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-velocity/src/java/org/apache/velocity/test/ConfigurationTestCase.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ConfigurationTestCase.java        2001/03/19 22:38:57     1.2
  +++ ConfigurationTestCase.java        2001/03/20 19:13:12     1.3
  @@ -70,7 +70,7 @@
    * Tests for the Configuration class.
    *
    * @author <a href="mailto:[EMAIL PROTECTED]">Jason van Zyl</a>
  - * @version $Id: ConfigurationTestCase.java,v 1.2 2001/03/19 22:38:57 jvanzyl Exp $
  + * @version $Id: ConfigurationTestCase.java,v 1.3 2001/03/20 19:13:12 geirm Exp $
    */
   public class ConfigurationTestCase extends BaseTestCase
   {
  @@ -163,6 +163,14 @@
   
               message(result, "Testing getDouble(key) ...");
               result.write(new Double(c.getDouble("config.double.value")).toString());
  +            result.write("\n\n");
  +
  +            message(result, "Testing escaped-comma scalar...");
  +            result.write( c.getString("escape.comma1"));
  +            result.write("\n\n");
  +
  +            message(result, "Testing escaped-comma vector...");
  +            showVector(result,  c.getVector("escape.comma2"));
               result.write("\n\n");
   
               result.flush();
  
  
  
  1.3       +1 -2      
jakarta-velocity/src/java/org/apache/velocity/test/MethodInvocationExceptionTest.java
  
  Index: MethodInvocationExceptionTest.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-velocity/src/java/org/apache/velocity/test/MethodInvocationExceptionTest.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- MethodInvocationExceptionTest.java        2001/03/19 22:38:58     1.2
  +++ MethodInvocationExceptionTest.java        2001/03/20 19:13:15     1.3
  @@ -69,7 +69,7 @@
    * Tests if we can hand Velocity an arbitrary class for logging.
    *
    * @author <a href="mailto:[EMAIL PROTECTED]">Geir Magnusson Jr.</a>
  - * @version $Id: MethodInvocationExceptionTest.java,v 1.2 2001/03/19 22:38:58 
jvanzyl Exp $
  + * @version $Id: MethodInvocationExceptionTest.java,v 1.3 2001/03/20 19:13:15 geirm 
Exp $
    */
   public class MethodInvocationExceptionTest extends TestCase 
   {
  @@ -146,7 +146,6 @@
       public void doException()
           throws Exception
       {
  -        System.out.println("DooException");
           throw new NullPointerException();
       }
   }
  
  
  
  1.23      +3 -3      
jakarta-velocity/src/java/org/apache/velocity/test/misc/Test.java
  
  Index: Test.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-velocity/src/java/org/apache/velocity/test/misc/Test.java,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- Test.java 2001/03/19 17:31:33     1.22
  +++ Test.java 2001/03/20 19:13:28     1.23
  @@ -89,7 +89,7 @@
    *
    * @author <a href="mailto:[EMAIL PROTECTED]">Jason van Zyl</a>
    * @author <a href="mailto:[EMAIL PROTECTED]">Geir Magnusson Jr.</a>
  - * @version $Id: Test.java,v 1.22 2001/03/19 17:31:33 geirm Exp $
  + * @version $Id: Test.java,v 1.23 2001/03/20 19:13:28 geirm Exp $
    */
   public class Test
   {
  @@ -199,7 +199,7 @@
               }
               catch( ResourceNotFoundException rnfe )
               {
  -                System.out.println("Test : Cannot find template " + templateFile );
  +                System.out.println("Test : RNFE : Cannot find template " + 
templateFile );
               }
               catch( ParseErrorException pee )
               {
  @@ -244,7 +244,7 @@
               String stest = " My name is $name -> $Floog";
               StringWriter w = new StringWriter();
               Velocity.evaluate( context, w, "evaltest",stest );
  -            System.out.println("Eval = " + w );
  +            //            System.out.println("Eval = " + w );
   
               w = new StringWriter();
               //Velocity.mergeTemplate( "mergethis.vm",  context, w );
  
  
  

Reply via email to