From 7538855855007bc0e2077fcc1b2bfe51bff1dec7 Mon Sep 17 00:00:00 2001 From: "Mark R. Diggory" Date: Tue, 1 Jun 2004 23:40:29 +0000 Subject: [PATCH] Exception is getting exposed where it wasn't shown before. git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141263 13f79535-47bb-0310-9956-ffa450edef68 --- .../stat/data/CertifiedDataAbstractTest.java | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/src/test/org/apache/commons/math/stat/data/CertifiedDataAbstractTest.java b/src/test/org/apache/commons/math/stat/data/CertifiedDataAbstractTest.java index c4143e71d..d8323065d 100644 --- a/src/test/org/apache/commons/math/stat/data/CertifiedDataAbstractTest.java +++ b/src/test/org/apache/commons/math/stat/data/CertifiedDataAbstractTest.java @@ -36,7 +36,7 @@ import org.apache.commons.math.stat.univariate.SummaryStatistics; import junit.framework.TestCase; /** - * @version $Revision: 1.3 $ $Date: 2004/06/01 22:15:51 $ + * @version $Revision: 1.4 $ $Date: 2004/06/01 23:40:29 $ */ public abstract class CertifiedDataAbstractTest extends TestCase { @@ -134,19 +134,11 @@ public abstract class CertifiedDataAbstractTest extends TestCase { } - protected Object getProperty(Object bean, String name){ - + protected Object getProperty(Object bean, String name) throws Exception{ // Get the value of prop String prop = "get" + name.substring(0,1).toUpperCase() + name.substring(1); - Expression expr = new Expression(bean, prop, new Object[0]); - try { - expr.execute(); - return expr.getValue(); - } catch (Exception e) { - e.printStackTrace(); - } - - return null; + expr.execute(); + return expr.getValue(); } }