Skip to content
Snippets Groups Projects
Commit f1249170 authored by Luc Maisonobe's avatar Luc Maisonobe
Browse files

Fixed test failure with maven and openJDK7

parent dea7dd0a
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
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