Commit 19133a9d authored by Luc Maisonobe's avatar Luc Maisonobe

Test deprecated methods.

parent db502dce
......@@ -17,6 +17,8 @@
package org.orekit.forces.drag;
import java.util.List;
import org.hipparchus.geometry.euclidean.threed.Vector3D;
import org.hipparchus.ode.AbstractIntegrator;
import org.hipparchus.ode.nonstiff.DormandPrince853Integrator;
......@@ -52,6 +54,18 @@ import org.orekit.utils.TimeStampedPVCoordinates;
public class DragForceTest extends AbstractForceModelTest {
@Test
@Deprecated
public void testDeprecatedMethods() throws OrekitException {
final DragSensitive ds = new IsotropicDrag(2.5, 1.2);
final List<String> names = ds.getDragParametersNames();
Assert.assertEquals(1, names.size());
Assert.assertEquals(DragSensitive.DRAG_COEFFICIENT, names.get(0));
Assert.assertEquals(1.2, ds.getDragCoefficient(), 1.0e-10);
ds.setDragCoefficient(10.0);
Assert.assertEquals(10.0, ds.getDragCoefficient(), 1.0e-10);
}
@Test
public void testParameterDerivativeSphere() throws OrekitException {
......
Markdown is supported
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