Test of hasPlace method, of class Path.
()
| 75 | * Test of hasPlace method, of class Path. |
| 76 | */ |
| 77 | @Test |
| 78 | public void testHasPlace() { |
| 79 | System.out.println("hasPlace"); |
| 80 | |
| 81 | Path instance = new Path(places[0], "n", places[1], "s"); |
| 82 | assertTrue(instance.hasPlace(places[0])); |
| 83 | assertTrue(instance.hasPlace(places[1])); |
| 84 | assertFalse(instance.hasPlace(places[2])); |
| 85 | } |
| 86 | |
| 87 | /** |
| 88 | * Test of getExitDirections method, of class Path. |