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

Method setupHost

test/MapBasedMovementTest.java:231–239  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

229 }
230
231 private DTNHost setupHost() {
232 TestUtils utils = new TestUtils(null, null, s);
233 DTNHost h1 = utils.createHost(mbm, null);
234
235 h1.move(0); // get a path for the node
236 // move node directly to first waypoint
237 h1.setLocation(h1.getPath().getCoords().get(0));
238 return h1;
239 }
240
241 private String writeToNewFile() throws IOException {
242 File tempFile = File.createTempFile("mapCachingTest", ".tmp");

Callers 1

testHostMovingMethod · 0.95

Calls 6

createHostMethod · 0.95
moveMethod · 0.95
setLocationMethod · 0.95
getPathMethod · 0.95
getCoordsMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected