Esempio n. 1
0
 // Special test for linksIDS.xml
 @Test
 public void getPathTest2() {
   Path path = manager.getPath("Nihov", "Kurim");
   assertNotNull("Path cannot be null.", path);
   assertEquals(path.getTotalMinutes(), null);
   assertEquals(path.isBrno(), false);
   assertDeepEquals(path.getZones(), Arrays.asList(345, 340, 330, 320, 310));
   assertDeepEquals(
       path.getStations(),
       Arrays.asList("Níhov", "Řikonín", "Dolní Loučky", "Tišnov", "Hradčany", "Čebín", "Kuřim"));
 }
Esempio n. 2
0
 // Special test for linksIDS.xml
 @Test
 public void getPathTest5() {
   Path path = manager.getPath("Oslavany", "Ivančice letovisko");
   assertNotNull("Path cannot be null.", path);
   assertEquals(path.getTotalMinutes(), null);
   assertEquals(path.isBrno(), false);
   assertDeepEquals(path.getZones(), Arrays.asList(447));
   assertDeepEquals(
       path.getStations(),
       Arrays.asList("Ivančice město", "Ivančice", "Oslavany", "Ivančice letovisko"));
 }
Esempio n. 3
0
 // Special test for linksIDS.xml
 @Test
 public void getPathTest4() {
   Path path = manager.getPath("Radostice", "Bohutice");
   assertNotNull("Path cannot be null.", path);
   assertEquals(path.getTotalMinutes(), null);
   assertEquals(path.isBrno(), false);
   assertDeepEquals(path.getZones(), Arrays.asList(427, 437, 448, 459));
   assertDeepEquals(
       path.getStations(),
       Arrays.asList(
           "Radostice", "Silůvky", "Moravské Bránice", "Moravský Krumlov", "Rakšice", "Bohutice"));
 }
Esempio n. 4
0
 // Special test for linksIDS.xml
 @Test
 public void getPathTest3() {
   Path path = manager.getPath("Brno hl.n.", "Radostice");
   assertNotNull("Path cannot be null.", path);
   assertEquals(path.getTotalMinutes(), null);
   assertEquals(path.isBrno(), true);
   assertDeepEquals(path.getZones(), Arrays.asList(100, 101, 410, 427));
   assertDeepEquals(
       path.getStations(),
       Arrays.asList(
           "Brno hl.n.",
           "Brno-Horní Heršpice",
           "Troubsko",
           "Střelice dolní",
           "Střelice",
           "Radostice"));
 }
Esempio n. 5
0
 // Special test for linksIDS.xml
 @Test
 public void getPathTest1() {
   Path path = manager.getPath("Brno hl.n.", "Blansko-mesto");
   assertNotNull("Path cannot be null.", path);
   assertEquals(path.getTotalMinutes(), null);
   assertEquals(path.isBrno(), true);
   assertDeepEquals(path.getZones(), Arrays.asList(100, 215, 225, 235));
   assertDeepEquals(
       path.getStations(),
       Arrays.asList(
           "Brno hl.n.",
           "Brno-Židenice",
           "Bílovice n.Svitavou",
           "Babice n.Svitavou",
           "Adamov",
           "Adamov zast.",
           "Blansko",
           "Blansko město"));
 }