Test of breadthSearchReset method, of class Place.
()
| 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. |
nothing calls this directly
no test coverage detected