Test of removePlace method, of class Path.
()
| 135 | * Test of removePlace method, of class Path. |
| 136 | */ |
| 137 | @Test |
| 138 | public void testRemove() { |
| 139 | System.out.println("remove"); |
| 140 | |
| 141 | Path instance = new Path(places[0], "n", places[1], "s"); |
| 142 | places[0].connectPath(instance); |
| 143 | assertTrue(places[0].getPaths().contains(instance)); |
| 144 | assertTrue(places[1].getPaths().contains(instance)); |
| 145 | instance.remove(); |
| 146 | assertFalse(places[0].getPaths().contains(instance)); |
| 147 | assertFalse(places[1].getPaths().contains(instance)); |
| 148 | } |
| 149 | |
| 150 | /** |
| 151 | * Test of getOppositeDir method, of class Path. |
nothing calls this directly
no test coverage detected