Test of getHome method, of class World.
()
| 186 | * Test of getHome method, of class World. |
| 187 | */ |
| 188 | @Test |
| 189 | public void testGetHome() { |
| 190 | System.out.println("getHome"); |
| 191 | |
| 192 | World instance = new World(); |
| 193 | |
| 194 | WorldCoordinate expResult = new WorldCoordinate(0, 0, 0); |
| 195 | WorldCoordinate result = instance.getHome(); |
| 196 | assertTrue(expResult.compareTo(result) == 0); |
| 197 | |
| 198 | int x = 5, y = 12; |
| 199 | Layer l = instance.getNewLayer(); |
| 200 | instance.setHome(new WorldCoordinate(l.getId(), x, y)); |
| 201 | |
| 202 | expResult = new WorldCoordinate(l.getId(), x, y); |
| 203 | result = instance.getHome(); |
| 204 | assertTrue(expResult.compareTo(result) == 0); |
| 205 | } |
| 206 | |
| 207 | /** |
| 208 | * Test of setHome method, of class World. |
nothing calls this directly
no test coverage detected