mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-14 16:40:30 +00:00
add strange test case without time
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@20 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
b53b0bc01b
commit
83fbf467fd
1 changed files with 23 additions and 1 deletions
|
@ -21,6 +21,7 @@ import static junit.framework.Assert.assertTrue;
|
|||
|
||||
import java.util.regex.Matcher;
|
||||
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
||||
/**
|
||||
|
@ -31,7 +32,8 @@ public class MvvProviderTest
|
|||
@Test
|
||||
public void trip()
|
||||
{
|
||||
assertFineConnectionDetails("\n" + "<td colspan=\"4\">ab 04:27 Machern (Sachs) Gleis 2<br />\n" //
|
||||
assertFineConnectionDetails("\n" //
|
||||
+ "<td colspan=\"4\">ab 04:27 Machern (Sachs) Gleis 2<br />\n" //
|
||||
+ "</td>\n" //
|
||||
+ "\n" //
|
||||
+ "<td width=\"15\" valign=\"middle\">\n" //
|
||||
|
@ -44,6 +46,26 @@ public class MvvProviderTest
|
|||
+ "<td colspan=\"4\">an 04:47 Leipzig Hbf Gleis 19</td>\n");
|
||||
}
|
||||
|
||||
@Test
|
||||
@Ignore("deactivated because there is no time")
|
||||
public void tripWithoutTime()
|
||||
{
|
||||
assertFineConnectionDetails("\n" //
|
||||
+ "<td colspan=\"4\">ab Neufahrn <a class=\"imgLink\" href=\"XSLT_TRIP_REQUEST2?language=de&tripSelector2=on&sessionID=MVV2_1678243657&requestID=1&tripSelection=on&itdLPxx_view=map_2&itdLPxx_img=FILELOAD?Filename=mvv2_4C45BE6910.png&itdLPxx_partialRoute=2&imageFormat=PNG&imageWidth=400&imageHeight=300&imageOnly=1&imageNoTiles=1&itdLPxx_usage=departure\"><img src=\"images/pdf.gif\" border=\"0\" alt=\"Karte\" /></a>\n" //
|
||||
+ "<br />\n" //
|
||||
+ "</td>\n" //
|
||||
+ "\n" //
|
||||
+ "<td width=\"15\" valign=\"middle\">\n" //
|
||||
+ "<img src=\"images/means/seat.gif\" alt=\"Sitzenbleiber\" />\n" //
|
||||
+ "</td>\n" //
|
||||
+ "<td width=\"1\" valign=\"middle\" />\n" //
|
||||
+ "<td>nicht umsteigen</td>\n" //
|
||||
+ "<td width=\"1\"> </td>\n" //
|
||||
+ "\n" //
|
||||
+ "<td colspan=\"4\">an Neufahrn <a class=\"imgLink\" href=\"XSLT_TRIP_REQUEST2?language=de&tripSelector2=on&sessionID=MVV2_1678243657&requestID=1&tripSelection=on&itdLPxx_view=map_2&itdLPxx_img=FILELOAD?Filename=mvv2_4C45BE6911.png&itdLPxx_partialRoute=2&imageFormat=PNG&imageWidth=400&imageHeight=300&imageOnly=1&imageNoTiles=1&command=nop&itdLPxx_usage=arrival\"><img src=\"images/pdf.gif\" border=\"0\" alt=\"Karte\" /></a>\n" //
|
||||
+ "</td>\n");
|
||||
}
|
||||
|
||||
private void assertFineConnectionDetails(String s)
|
||||
{
|
||||
Matcher m = MvvProvider.P_CONNECTION_DETAILS_FINE.matcher(s);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue