Test of setHome method, of class World.
()
| 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 |
nothing calls this directly
no test coverage detected