Skip to content
Snippets Groups Projects
Commit 7ce8fb13 authored by Guylaine Prat's avatar Guylaine Prat
Browse files

Due to checkstyle corrections, add access to protected method of

GroundOptimizationProblemBuilder
parent c766ed2a
No related branches found
No related tags found
No related merge requests found
...@@ -1076,6 +1076,17 @@ public class RuggedTest { ...@@ -1076,6 +1076,17 @@ public class RuggedTest {
3.0e-10, 5.0e-10, 2.0e-12, 7.0e-8); 3.0e-10, 5.0e-10, 2.0e-12, 7.0e-8);
} }
/**
* @param dimension
* @param lightTimeCorrection
* @param aberrationOfLightCorrection
* @param lineTolerance
* @param pixelTolerance
* @param lineDerivativeRelativeTolerance
* @param pixelDerivativeRelativeTolerance
* @throws RuggedException
* @throws OrekitException
*/
private void doTestInverseLocationDerivatives(int dimension, private void doTestInverseLocationDerivatives(int dimension,
boolean lightTimeCorrection, boolean lightTimeCorrection,
boolean aberrationOfLightCorrection, boolean aberrationOfLightCorrection,
...@@ -1146,9 +1157,13 @@ public class RuggedTest { ...@@ -1146,9 +1157,13 @@ public class RuggedTest {
// prepare generator // prepare generator
final Observables measurements = new Observables(1); final Observables measurements = new Observables(1);
GroundOptimizationProblemBuilder OptimizationProblembuilder = new GroundOptimizationProblemBuilder(Collections.singletonList(lineSensor), GroundOptimizationProblemBuilder optimizationPbBuilder = new GroundOptimizationProblemBuilder(Collections.singletonList(lineSensor),
measurements, rugged); measurements, rugged);
DSGenerator generator = OptimizationProblembuilder.getGenerator();
java.lang.reflect.Method getGenerator = GroundOptimizationProblemBuilder.class.getSuperclass().getDeclaredMethod("getGenerator");
getGenerator.setAccessible(true);
DSGenerator generator = (DSGenerator) getGenerator.invoke(optimizationPbBuilder);
double referenceLine = 0.87654 * dimension; double referenceLine = 0.87654 * dimension;
GeodeticPoint[] gp = rugged.directLocation("line", referenceLine); GeodeticPoint[] gp = rugged.directLocation("line", referenceLine);
...@@ -1234,9 +1249,9 @@ public class RuggedTest { ...@@ -1234,9 +1249,9 @@ public class RuggedTest {
Assert.assertEquals(dXdP, result[1].getPartialDerivative(0, 1), dXdP * pixelDerivativeRelativeTolerance); Assert.assertEquals(dXdP, result[1].getPartialDerivative(0, 1), dXdP * pixelDerivativeRelativeTolerance);
} catch (InvocationTargetException | NoSuchMethodException | } catch (InvocationTargetException | NoSuchMethodException |
SecurityException | IllegalAccessException | SecurityException | IllegalAccessException |
IllegalArgumentException | URISyntaxException | IllegalArgumentException | URISyntaxException |
OrekitExceptionWrapper | RuggedExceptionWrapper e) { OrekitExceptionWrapper | RuggedExceptionWrapper e) {
Assert.fail(e.getLocalizedMessage()); Assert.fail(e.getLocalizedMessage());
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment