Test of getOtherPlace method, of class Path.
()
| 117 | * Test of getOtherPlace method, of class Path. |
| 118 | */ |
| 119 | @Test |
| 120 | public void testGetOtherPlace() { |
| 121 | System.out.println("getOtherPlace"); |
| 122 | |
| 123 | Path instance = new Path(places[0], "n", places[1], "s"); |
| 124 | Place result = instance.getOtherPlace(places[0]); |
| 125 | assertEquals(places[1], result); |
| 126 | result = instance.getOtherPlace(places[1]); |
| 127 | assertEquals(places[0], result); |
| 128 | try { |
| 129 | instance.getOtherPlace(places[2]); |
| 130 | fail(); |
| 131 | } catch(Exception ex){} |
| 132 | } |
| 133 | |
| 134 | /** |
| 135 | * Test of removePlace method, of class Path. |
nothing calls this directly
no test coverage detected