Author: dion
Date: Sun Nov 20 16:54:30 2005
New Revision: 345797

URL: http://svn.apache.org/viewcvs?rev=345797&view=rev
Log:
Use MissingAttributeException if file is not provided

Modified:
    
jakarta/commons/proper/jelly/trunk/jelly-tags/junit/src/java/org/apache/commons/jelly/tags/junit/AssertFileExistsTag.java
    
jakarta/commons/proper/jelly/trunk/jelly-tags/junit/src/java/org/apache/commons/jelly/tags/junit/AssertFileNotFoundTag.java

Modified: 
jakarta/commons/proper/jelly/trunk/jelly-tags/junit/src/java/org/apache/commons/jelly/tags/junit/AssertFileExistsTag.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/jelly/trunk/jelly-tags/junit/src/java/org/apache/commons/jelly/tags/junit/AssertFileExistsTag.java?rev=345797&r1=345796&r2=345797&view=diff
==============================================================================
--- 
jakarta/commons/proper/jelly/trunk/jelly-tags/junit/src/java/org/apache/commons/jelly/tags/junit/AssertFileExistsTag.java
 (original)
+++ 
jakarta/commons/proper/jelly/trunk/jelly-tags/junit/src/java/org/apache/commons/jelly/tags/junit/AssertFileExistsTag.java
 Sun Nov 20 16:54:30 2005
@@ -18,6 +18,7 @@
 import java.io.File;
 
 import org.apache.commons.jelly.JellyTagException;
+import org.apache.commons.jelly.MissingAttributeException;
 import org.apache.commons.jelly.XMLOutput;
 import org.apache.commons.jelly.expression.Expression;
 
@@ -48,7 +49,7 @@
         
         if (file == null)
         {
-            fail(message, "file given is null");
+            throw new MissingAttributeException("file");
         }
         else
         {

Modified: 
jakarta/commons/proper/jelly/trunk/jelly-tags/junit/src/java/org/apache/commons/jelly/tags/junit/AssertFileNotFoundTag.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/jelly/trunk/jelly-tags/junit/src/java/org/apache/commons/jelly/tags/junit/AssertFileNotFoundTag.java?rev=345797&r1=345796&r2=345797&view=diff
==============================================================================
--- 
jakarta/commons/proper/jelly/trunk/jelly-tags/junit/src/java/org/apache/commons/jelly/tags/junit/AssertFileNotFoundTag.java
 (original)
+++ 
jakarta/commons/proper/jelly/trunk/jelly-tags/junit/src/java/org/apache/commons/jelly/tags/junit/AssertFileNotFoundTag.java
 Sun Nov 20 16:54:30 2005
@@ -18,6 +18,7 @@
 import java.io.File;
 
 import org.apache.commons.jelly.JellyTagException;
+import org.apache.commons.jelly.MissingAttributeException;
 import org.apache.commons.jelly.XMLOutput;
 import org.apache.commons.jelly.expression.Expression;
 
@@ -48,7 +49,7 @@
         
         if (file == null)
         {
-            fail(message, "file given is null");
+            throw new MissingAttributeException("file");
         }
         else
         {



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to