Commit 165cc6df authored by Bryan Cazabonne's avatar Bryan Cazabonne
Browse files

Fixed failing test in Keplerian propagator.

parent db0d964c
Pipeline #1667 passed with stages
in 21 minutes and 10 seconds
......@@ -155,19 +155,6 @@ public class KeplerianPropagatorTest {
Assert.assertEquals(4.2, finalStateBoundedPropagator.getAdditionalState("myState")[0], 1.0e-15);
}
@Test
public void testStmAndJacobian() {
AbsoluteDate initDate = AbsoluteDate.GPS_EPOCH;
Orbit ic = new KeplerianOrbit(6378137 + 500e3, 1e-3, 0, 0, 0, 0, PositionAngle.TRUE, FramesFactory.getGCRF(), initDate, mu);
Propagator propagator = new KeplerianPropagator(ic);
try {
propagator.setupMatricesComputation("stm", null, null);
Assert.fail("an exception should have been thrown");
} catch (UnsupportedOperationException uoe) {
// expected
}
}
@Test
public void sameDateCartesian() {
......
......@@ -339,6 +339,23 @@ public class GPSPropagatorTest {
Assert.assertEquals(0., Vector3D.distance(expectedPos, computedPos), 3.2);
}
@Test
public void testStmAndJacobian() {
// Builds the GPSPropagator from the almanac
final GNSSPropagator propagator = new GNSSPropagatorBuilder(almanacs.get(0)).
attitudeProvider(Utils.defaultLaw()).
mass(1521.0).
eci(FramesFactory.getEME2000()).
ecef(FramesFactory.getITRF(IERSConventions.IERS_2010, false)).
build();
try {
propagator.setupMatricesComputation("stm", null, null);
Assert.fail("an exception should have been thrown");
} catch (UnsupportedOperationException uoe) {
// expected
}
}
@Test
public void testIssue544() {
// Builds the GPSPropagator from the almanac
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment