MCPcopy Create free account
hub / github.com/Neop/mudmap2 / testSetHome

Method testSetHome

src/test/java/mudmap2/backend/WorldTest.java:210–222  ·  view source on GitHub ↗

Test of setHome method, of class World.

()

Source from the content-addressed store, hash-verified

208 * Test of setHome method, of class World.
209 */
210 @Test
211 public void testSetHome() {
212 System.out.println("setHome");
213
214 World instance = new World();
215 int x = 5, y = 12;
216 Layer l = instance.getNewLayer();
217 instance.setHome(new WorldCoordinate(l.getId(), x, y));
218
219 WorldCoordinate expResult = new WorldCoordinate(l.getId(), x, y);
220 WorldCoordinate result = instance.getHome();
221 assertTrue(expResult.compareTo(result) == 0);
222 }
223
224 /**
225 * Test for putPlaceholder

Callers

nothing calls this directly

Calls 5

getNewLayerMethod · 0.95
setHomeMethod · 0.95
getIdMethod · 0.95
getHomeMethod · 0.95
compareToMethod · 0.95

Tested by

no test coverage detected