diff --git a/core/src/test/java/org/orekit/rugged/intersection/duvenhage/DuvenhageAlgorithmTest.java b/core/src/test/java/org/orekit/rugged/intersection/duvenhage/DuvenhageAlgorithmTest.java index f57b075117763844f50a444ef09cc114822294c6..0ccac1f702b3b30515d2d16c233ba27db0169355 100644 --- a/core/src/test/java/org/orekit/rugged/intersection/duvenhage/DuvenhageAlgorithmTest.java +++ b/core/src/test/java/org/orekit/rugged/intersection/duvenhage/DuvenhageAlgorithmTest.java @@ -202,7 +202,12 @@ public class DuvenhageAlgorithmTest extends AbstractAlgorithmTest { Vector3D.class, Vector3D.class); findExit.setAccessible(true); Object limitPoint = findExit.invoke(algorithm, tile, earth, position, los); - Class<?> limitPointCls = DuvenhageAlgorithm.class.getDeclaredClasses()[0]; + Class<?> limitPointCls = null; + for (Class<?> c : DuvenhageAlgorithm.class.getDeclaredClasses()) { + if (c.getName().endsWith("LimitPoint")) { + limitPointCls = c; + } + } Field pointField = limitPointCls.getDeclaredField("point"); pointField.setAccessible(true); return (NormalizedGeodeticPoint) pointField.get(limitPoint);