Commit 890c9a1e authored by Luc Maisonobe's avatar Luc Maisonobe

Test deprecated methods.

parent 19133a9d
......@@ -19,6 +19,7 @@ package org.orekit.forces.radiation;
import java.io.FileNotFoundException;
import java.text.ParseException;
import java.util.List;
import org.hipparchus.geometry.euclidean.threed.Vector3D;
import org.hipparchus.ode.nonstiff.AdaptiveStepsizeIntegrator;
......@@ -58,6 +59,22 @@ import org.orekit.utils.ParameterDriver;
public class SolarRadiationPressureTest extends AbstractForceModelTest {
@Test
@Deprecated
public void testDeprecatedMethods() throws OrekitException {
final RadiationSensitive rs = new IsotropicRadiationClassicalConvention(2.5, 0.7, 0.2);
final List<String> names = rs.getRadiationParametersNames();
Assert.assertEquals(2, names.size());
Assert.assertEquals(RadiationSensitive.ABSORPTION_COEFFICIENT, names.get(0));
Assert.assertEquals(RadiationSensitive.REFLECTION_COEFFICIENT, names.get(1));
Assert.assertEquals(0.7, rs.getAbsorptionCoefficient(), 1.0e-10);
rs.setAbsorptionCoefficient(0.8);
Assert.assertEquals(0.8, rs.getAbsorptionCoefficient(), 1.0e-10);
Assert.assertEquals(0.2, rs.getReflectionCoefficient(), 1.0e-10);
rs.setReflectionCoefficient(0.3);
Assert.assertEquals(0.3, rs.getReflectionCoefficient(), 1.0e-10);
}
@Test
public void testLighting() throws OrekitException, ParseException {
// Initialization
......
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