commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From morg...@apache.org
Subject cvs commit: jakarta-commons/latka/src/java/org/apache/commons/latka/jelly SuiteTag.java
Date Tue, 08 Oct 2002 20:36:33 GMT
morgand     2002/10/08 13:36:33

  Modified:    latka/src/java/org/apache/commons/latka/jelly SuiteTag.java
  Log:
  suite will throw exception on failure, useful for wrapping inside of JUnit
  tests
  
  Revision  Changes    Path
  1.15      +8 -3      jakarta-commons/latka/src/java/org/apache/commons/latka/jelly/SuiteTag.java
  
  Index: SuiteTag.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/latka/src/java/org/apache/commons/latka/jelly/SuiteTag.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- SuiteTag.java	8 Oct 2002 19:29:01 -0000	1.14
  +++ SuiteTag.java	8 Oct 2002 20:36:33 -0000	1.15
  @@ -64,6 +64,7 @@
   import org.apache.commons.jelly.TagSupport;
   import org.apache.commons.jelly.XMLOutput;
   
  +import org.apache.commons.latka.LatkaException;
   import org.apache.commons.latka.XMLReporter;
   import org.apache.commons.latka.event.LatkaEventInfo;
   import org.apache.commons.latka.event.SuiteCompletedEvent;
  @@ -107,6 +108,10 @@
           invokeBody(xmlOutput);
   
           reporter.suiteCompleted(new SuiteCompletedEvent());
  +
  +        if (reporter.didSuiteSucceed() == false) {
  +            throw new LatkaException("SUITE FAILED");
  +        }
   
       }
   
  
  
  

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


Mime
View raw message