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/latka/src/java/org/apache/commons/latka/junit JUnitTestAdapter.java
Date Tue, 05 Feb 2002 13:52:19 GMT
dion        02/02/05 05:52:19

  Modified:    latka/src/java/org/apache/commons/latka/junit
                        JUnitTestAdapter.java
  Log:
  Removed catch (Throwable...) and replaced with catching of
  individual exception
  
  Revision  Changes    Path
  1.8       +8 -4      jakarta-commons/latka/src/java/org/apache/commons/latka/junit/JUnitTestAdapter.java
  
  Index: JUnitTestAdapter.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/latka/src/java/org/apache/commons/latka/junit/JUnitTestAdapter.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- JUnitTestAdapter.java	3 Feb 2002 13:22:27 -0000	1.7
  +++ JUnitTestAdapter.java	5 Feb 2002 13:52:19 -0000	1.8
  @@ -91,7 +91,7 @@
    *
    * @author Chuck Burdick
    * @author dIon Gillard
  - * @version $Id: JUnitTestAdapter.java,v 1.7 2002/02/03 13:22:27 dion Exp $
  + * @version $Id: JUnitTestAdapter.java,v 1.8 2002/02/05 13:52:19 dion Exp $
    */
   public class JUnitTestAdapter implements Test {
       /** log4j category that output is logged to */
  @@ -189,8 +189,12 @@
               InputSource source = new InputSource(url.toString());
               Suite suite = new Suite(url);
               result = new JUnitTestAdapter(suite, parse(source));
  -        } catch (Throwable t) {
  -            _log.error("Unable to obtain xml from URL " + url.toString(), t);
  +        } catch (IOException ioe) {
  +            _log.error("IOException obtaining xml from URL " + url, ioe);
  +        } catch (SAXException se) {
  +            _log.error("Problem parsing URL " + url, se);
  +        } catch (ParserConfigurationException pce) {
  +            _log.error("Problem determining parser", pce);
           }
           return result;
       }
  @@ -224,7 +228,7 @@
        *
        * @author Chuck Burdick
        * @author dIon Gillard
  -     * @version $Id: JUnitTestAdapter.java,v 1.7 2002/02/03 13:22:27 dion Exp $
  +     * @version $Id: JUnitTestAdapter.java,v 1.8 2002/02/05 13:52:19 dion Exp $
        */
       private static class TestCounter extends DefaultHandler {
           /** number of requests (i.e. junit tests) */
  
  
  

--
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