MCPcopy Create free account
hub / github.com/akeranen/the-one / testGetPath

Method testGetPath

test/MapBasedMovementTest.java:81–94  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

79 }
80
81 public void testGetPath() {
82 setupMapData(null,null,null);
83 Coord c,c2;
84 mbm.getInitialLocation();
85 Path path = mbm.getPath();
86 c = path.getNextWaypoint();
87
88 while (path.hasNext()) {
89 c2 = path.getNextWaypoint();
90 // adjacent nodes are always 1 meter apart (in the test topology)
91 assertEquals(1.0, c.distance(c2));
92 c = c2;
93 }
94 }
95
96 public void testOneMapTypeNode() {
97 int NROF = 10;

Callers

nothing calls this directly

Calls 6

setupMapDataMethod · 0.95
getNextWaypointMethod · 0.95
hasNextMethod · 0.95
distanceMethod · 0.95
getInitialLocationMethod · 0.45
getPathMethod · 0.45

Tested by

no test coverage detected