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

Method testBreadthSearchReset

src/test/java/mudmap2/backend/PlaceTest.java:932–949  ·  view source on GitHub ↗

Test of breadthSearchReset method, of class Place.

()

Source from the content-addressed store, hash-verified

930 * Test of breadthSearchReset method, of class Place.
931 */
932 @Test
933 public void testBreadthSearchReset() {
934 System.out.println("breadthSearchReset");
935
936 Place instance = new Place("MyPlace", 1, 2, layer);
937 Place place1 = new Place("MyPlace", 1, 3, layer);
938 Place place2 = new Place("MyPlace", 1, 4, layer);
939
940 instance.connectPath(new Path(instance, "n", place1, "s"));
941 place1.connectPath(new Path(place1, "n", place2, "s"));
942
943 world.breadthSearch(instance, place2);
944
945 assertTrue(instance.getBreadthSearchData().marked);
946
947 instance.breadthSearchReset();
948 assertFalse(instance.getBreadthSearchData().marked);
949 }
950
951 /**
952 * Test of getBreadthSearchData method, of class Place.

Callers

nothing calls this directly

Calls 4

connectPathMethod · 0.95
getBreadthSearchDataMethod · 0.95
breadthSearchResetMethod · 0.95
breadthSearchMethod · 0.65

Tested by

no test coverage detected