MCPcopy Create free account
hub / github.com/Neop/mudmap2 / testGetOtherPlace

Method testGetOtherPlace

src/test/java/mudmap2/backend/PathTest.java:119–132  ·  view source on GitHub ↗

Test of getOtherPlace method, of class Path.

()

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 1

getOtherPlaceMethod · 0.95

Tested by

no test coverage detected