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
This commit is contained in:
parent
27cbce332c
commit
65b57b6018
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue