mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-18 00:09:55 +00:00
live departures for Germany
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@138 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
5f8c8db1e7
commit
e9637344b6
2 changed files with 29 additions and 10 deletions
|
@ -49,6 +49,18 @@ public class BahnProviderTest
|
|||
+ "<span class=\"bold\">10:42</span>Gl. 1");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void departureWithOnTime()
|
||||
{
|
||||
assertFineDepartures("<a href=\"http://mobile.bahn.de/bin/mobil/traininfo.exe/dox/438441/245165/958/145668/80/si=8011160&bt=dep&ti=21:47&pt=21:47&p=1111101&date=05.09.10&max=10&rt=1&&\">\n" //
|
||||
+ "<span class=\"bold\">RE 38148</span>\n" //
|
||||
+ "</a>\n" //
|
||||
+ ">>\n" //
|
||||
+ "Rathenow\n" //
|
||||
+ "<br />\n" //
|
||||
+ "<span class=\"bold\">21:58</span> <span class=\"green bold\">pünktl.</span>, Gl. 13");
|
||||
}
|
||||
|
||||
private void assertFineConnectionDetails(String s)
|
||||
{
|
||||
Matcher m = BahnProvider.P_CONNECTION_DETAILS_FINE.matcher(s);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue