Report more helpfully when errors occur

git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131348 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Stephen Colebourne 2003-11-18 21:28:16 +00:00
parent 8b313fecf6
commit bf2681bc5b
1 changed files with 6 additions and 4 deletions

View File

@ -1,5 +1,5 @@
/* /*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/BulkTest.java,v 1.6 2003/10/05 20:48:29 scolebourne Exp $ * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/BulkTest.java,v 1.7 2003/11/18 21:28:16 scolebourne Exp $
* ==================================================================== * ====================================================================
* *
* The Apache Software License, Version 1.1 * The Apache Software License, Version 1.1
@ -175,7 +175,7 @@ import junit.framework.TestSuite;
* interpret bulk test methods. * interpret bulk test methods.
* *
* @author Paul Jack * @author Paul Jack
* @version $Id: BulkTest.java,v 1.6 2003/10/05 20:48:29 scolebourne Exp $ * @version $Id: BulkTest.java,v 1.7 2003/11/18 21:28:16 scolebourne Exp $
*/ */
public class BulkTest extends TestCase implements Cloneable { public class BulkTest extends TestCase implements Cloneable {
@ -398,9 +398,11 @@ class BulkTestSuiteMaker {
try { try {
bulk2 = (BulkTest)m.invoke(bulk, null); bulk2 = (BulkTest)m.invoke(bulk, null);
if (bulk2 == null) return; if (bulk2 == null) return;
} catch (InvocationTargetException e) { } catch (InvocationTargetException ex) {
ex.getTargetException().printStackTrace();
throw new Error(); // FIXME; throw new Error(); // FIXME;
} catch (IllegalAccessException e) { } catch (IllegalAccessException ex) {
ex.printStackTrace();
throw new Error(); // FIXME; throw new Error(); // FIXME;
} }