commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: jakarta-commons/jelly/src/test/org/apache/commons/jelly/core TestInvokeStaticTag.java TestInvokeTag.java
Date Mon, 16 Aug 2004 03:44:28 GMT
dion        2004/08/15 20:44:28

  Modified:    jelly/src/test/org/apache/commons/jelly/core
                        TestInvokeStaticTag.java TestInvokeTag.java
  Log:
  Use correct type
  
  Revision  Changes    Path
  1.7       +5 -4      jakarta-commons/jelly/src/test/org/apache/commons/jelly/core/TestInvokeStaticTag.java
  
  Index: TestInvokeStaticTag.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/jelly/src/test/org/apache/commons/jelly/core/TestInvokeStaticTag.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- TestInvokeStaticTag.java	16 Aug 2004 01:59:32 -0000	1.6
  +++ TestInvokeStaticTag.java	16 Aug 2004 03:44:28 -0000	1.7
  @@ -17,6 +17,7 @@
   
   import junit.framework.TestSuite;
   
  +import org.apache.commons.jelly.JellyException;
   import org.apache.commons.jelly.Script;
   
   /**
  @@ -121,13 +122,13 @@
           script.run(getJellyContext(),getXMLOutput());
           String exceptionMessage = (String) getJellyContext().getVariable("exceptionMessage");
           assertNotNull( exceptionMessage );
  -        Exception jellyException = (Exception) getJellyContext().getVariable("jellyException");
  +        JellyException jellyException = (JellyException) getJellyContext().getVariable("jellyException");
           assertNotNull( jellyException );
           assertTrue( "messages are the same", ! exceptionMessage.equals(jellyException.getMessage())
);
           assertTrue( "exception '" + jellyException.getMessage() + "' does not ends with
'" +
           		exceptionMessage+"'", jellyException.getMessage().endsWith(exceptionMessage)
);
  -//        assertNotNull( jellyException.getCause() );
  -//        assertEquals( exceptionMessage, jellyException.getCause().getMessage() );
  +        assertNotNull( jellyException.getCause() );
  +        assertEquals( exceptionMessage, jellyException.getCause().getMessage() );
       }
       
   }
  
  
  
  1.7       +5 -4      jakarta-commons/jelly/src/test/org/apache/commons/jelly/core/TestInvokeTag.java
  
  Index: TestInvokeTag.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/jelly/src/test/org/apache/commons/jelly/core/TestInvokeTag.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- TestInvokeTag.java	16 Aug 2004 01:59:32 -0000	1.6
  +++ TestInvokeTag.java	16 Aug 2004 03:44:28 -0000	1.7
  @@ -17,6 +17,7 @@
   
   import junit.framework.TestSuite;
   
  +import org.apache.commons.jelly.JellyException;
   import org.apache.commons.jelly.Script;
   import org.apache.commons.jelly.core.Customer;
   
  @@ -117,13 +118,13 @@
           String exceptionMessage = (String) getJellyContext().getVariable("exceptionMessage");
           assertNotNull( exceptionMessage );
           assertNotNull( getJellyContext().getVariable("exceptionBean"));
  -        Exception jellyException = (Exception) getJellyContext().getVariable("jellyException");
  +        JellyException jellyException = (JellyException) getJellyContext().getVariable("jellyException");
           assertNotNull( jellyException );
           assertTrue( "messages are the same", ! exceptionMessage.equals(jellyException.getMessage())
);
           assertTrue( "exception '" + jellyException.getMessage() + "' does not ends with
'" +
           		exceptionMessage+"'", jellyException.getMessage().endsWith(exceptionMessage)
);
  -//        assertNotNull( jellyException.getCause() );
  -//        assertEquals( exceptionMessage, jellyException.getCause().getMessage() );
  +        assertNotNull( jellyException.getCause() );
  +        assertEquals( exceptionMessage, jellyException.getCause().getMessage() );
       }
       
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message