Test of getExit method, of class Path.
()
| 102 | * Test of getExit method, of class Path. |
| 103 | */ |
| 104 | @Test |
| 105 | public void testGetExit() { |
| 106 | System.out.println("getExit"); |
| 107 | |
| 108 | String dir1 = "n", dir2 = "s"; |
| 109 | Path instance = new Path(places[0], dir1, places[1], dir2); |
| 110 | String result = instance.getExit(places[0]); |
| 111 | assertEquals(dir1, result); |
| 112 | result = instance.getExit(places[1]); |
| 113 | assertEquals(dir2, result); |
| 114 | } |
| 115 | |
| 116 | /** |
| 117 | * Test of getOtherPlace method, of class Path. |