Fixed test as the master brnahc generates different exceptions.

This commit is contained in:
Luc Maisonobe 2016-01-06 13:39:56 +01:00
parent a2efc6b6b9
commit 6e4265d61c
1 changed files with 5 additions and 1 deletions

View File

@ -21,6 +21,8 @@ import java.util.Random;
import org.apache.commons.math4.Field;
import org.apache.commons.math4.RealFieldElement;
import org.apache.commons.math4.exception.DimensionMismatchException;
import org.apache.commons.math4.exception.MathIllegalArgumentException;
import org.apache.commons.math4.ode.nonstiff.DormandPrince54FieldIntegrator;
import org.apache.commons.math4.ode.nonstiff.DormandPrince853FieldIntegrator;
import org.apache.commons.math4.ode.sampling.DummyFieldStepInterpolator;
@ -185,7 +187,9 @@ public class ContinuousOutputFieldModelTest {
ContinuousOutputFieldModel<T> otherCm = new ContinuousOutputFieldModel<T>();
otherCm.handleStep(buildInterpolator(field, t0, t1, y), true);
cm.append(otherCm);
} catch(IllegalArgumentException iae) {
} catch(DimensionMismatchException dme) {
return true; // there was an allowable error
} catch(MathIllegalArgumentException miae) {
return true; // there was an allowable error
}
return false; // no allowable error