Test of getExit method, of class Place.
()
| 402 | * Test of getExit method, of class Place. |
| 403 | */ |
| 404 | @Test |
| 405 | public void testGetExit() { |
| 406 | System.out.println("getExit"); |
| 407 | |
| 408 | Place instance = new Place("MyPlace", 0, 0, layer); |
| 409 | Place p2 = new Place("Other Place", 1, 0, layer); |
| 410 | |
| 411 | assertTrue(instance.getExit("n").isEmpty()); |
| 412 | |
| 413 | String dir1 = "n"; |
| 414 | String dir2 = "s"; |
| 415 | Path p = new Path(p2, dir1, instance, dir2); |
| 416 | instance.connectPath(p); |
| 417 | HashSet<Path> result = instance.getExit(dir2); |
| 418 | assertTrue(result.contains(p)); |
| 419 | } |
| 420 | |
| 421 | /** |
| 422 | * Test of getPaths method, of class Place. |
nothing calls this directly
no test coverage detected