mirror of
https://github.com/apache/commons-math.git
synced 2025-02-06 01:59:13 +00:00
Fixed test changed by former exceptions modifications.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1178808 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e777a24d2b
commit
8fcbe82ab6
@ -16,11 +16,12 @@
|
||||
*/
|
||||
package org.apache.commons.math.random;
|
||||
|
||||
import java.io.EOFException;
|
||||
import java.net.URL;
|
||||
import java.util.Arrays;
|
||||
|
||||
import org.apache.commons.math.RetryRunner;
|
||||
import org.apache.commons.math.exception.MathIllegalStateException;
|
||||
import org.apache.commons.math.exception.ZeroException;
|
||||
import org.apache.commons.math.stat.descriptive.SummaryStatistics;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Before;
|
||||
@ -131,7 +132,7 @@ public final class ValueServerTest {
|
||||
vs.setValuesFileURL(url);
|
||||
vs.getNext();
|
||||
Assert.fail("an exception should have been thrown");
|
||||
} catch (EOFException eof) {
|
||||
} catch (MathIllegalStateException mise) {
|
||||
// expected behavior
|
||||
}
|
||||
}
|
||||
@ -144,7 +145,7 @@ public final class ValueServerTest {
|
||||
vs.setValuesFileURL(url);
|
||||
vs.computeDistribution();
|
||||
Assert.fail("an exception should have been thrown");
|
||||
} catch (EOFException eof) {
|
||||
} catch (ZeroException ze) {
|
||||
// expected behavior
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user