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

Method testRemove

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

Test of removePlace method, of class Path.

()

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 4

removeMethod · 0.95
connectPathMethod · 0.80
getPathsMethod · 0.80
containsMethod · 0.65

Tested by

no test coverage detected