From 65b57b6018eda2b0f5a6eb7e7833bd96eb20e4b6 Mon Sep 17 00:00:00 2001 From: Phil Steitz Date: Sat, 10 Jul 2004 17:13:00 +0000 Subject: [PATCH] Removed tests for factory methods that have been removed. git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@141370 13f79535-47bb-0310-9956-ffa450edef68 --- .../univariate/DescriptiveStatisticsTest.java | 25 +------------------ 1 file changed, 1 insertion(+), 24 deletions(-) diff --git a/src/test/org/apache/commons/math/stat/univariate/DescriptiveStatisticsTest.java b/src/test/org/apache/commons/math/stat/univariate/DescriptiveStatisticsTest.java index 4dcbd0e95..afc38bb1d 100644 --- a/src/test/org/apache/commons/math/stat/univariate/DescriptiveStatisticsTest.java +++ b/src/test/org/apache/commons/math/stat/univariate/DescriptiveStatisticsTest.java @@ -26,7 +26,7 @@ import org.apache.commons.math.random.RandomDataImpl; /** * Test cases for the {@link Univariate} class. * - * @version $Revision: 1.6 $ $Date: 2004/05/23 00:56:15 $ + * @version $Revision: 1.7 $ $Date: 2004/07/10 17:13:00 $ */ public final class DescriptiveStatisticsTest extends TestCase { @@ -328,29 +328,6 @@ public final class DescriptiveStatisticsTest extends TestCase { assertEquals("total count",0,u2.getN(),tolerance); } - public void testNewInstanceStringNull() { - try { - DescriptiveStatistics u = DescriptiveStatistics.newInstance((String)null); - fail("null is not a valid descriptive statistics class name"); - } catch (NullPointerException ex) { - // success - } catch (Exception ex) { - fail(); - } - - } - - public void testNewInstanceStringValid() { - try { - DescriptiveStatistics u = DescriptiveStatistics.newInstance( - "org.apache.commons.math.stat.univariate.DescriptiveStatisticsImpl"); - assertNotNull(u); - assertTrue(u instanceof DescriptiveStatisticsImpl); - } catch (Exception ex) { - fail(); - } - } - public void testNewInstanceClassNull() { try { DescriptiveStatistics u = DescriptiveStatistics.newInstance((Class)null);