You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by lu...@apache.org on 2011/10/04 16:14:28 UTC
svn commit: r1178808 -
/commons/proper/math/trunk/src/test/java/org/apache/commons/math/random/ValueServerTest.java
Author: luc
Date: Tue Oct 4 14:14:28 2011
New Revision: 1178808
URL: http://svn.apache.org/viewvc?rev=1178808&view=rev
Log:
Fixed test changed by former exceptions modifications.
Modified:
commons/proper/math/trunk/src/test/java/org/apache/commons/math/random/ValueServerTest.java
Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math/random/ValueServerTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math/random/ValueServerTest.java?rev=1178808&r1=1178807&r2=1178808&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math/random/ValueServerTest.java (original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math/random/ValueServerTest.java Tue Oct 4 14:14:28 2011
@@ -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
}
}