2 import junit
.framework
.*;
4 public class MySearcherTest
extends TestCase
6 public MySearcherTest (String name
) {
10 public void testEmpty () {
11 MySearcher my
= new MySearcher();
12 my
.setMap(new File("maps/umea_map.xml"));
15 public void testMap() {
16 MySearcher my
= new MySearcher();
17 my
.setMap(new File("maps/umea_map.xml"));
18 System
.out
.println(my
.toString());
21 public void testGreedy() {
22 MySearcher my
= new MySearcher();
23 my
.setMap(new File("maps/umea_map.xml"));
24 System
.out
.println(my
.toString());
25 System
.out
.println(my
.greedySearch("Rondellen", "Station"));
28 public void testBreadthFirst() {
29 MySearcher my
= new MySearcher();
30 my
.setMap(new File("maps/umea_map.xml"));
31 System
.out
.println(my
.breadthFirst("Rondellen", "Station"));