mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-15 09:00:36 +00:00
Check for internal errors advertised as HTTP status OK.
This commit is contained in:
parent
ca3fb061a6
commit
11a8d9f8fe
2 changed files with 22 additions and 0 deletions
|
@ -99,4 +99,11 @@ public class ParserUtilsTest
|
|||
{
|
||||
assertTrue(ParserUtils.testExpired("<h2>Ihre Verbindungskennung ist nicht mehr gültig.</h2>"));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void internalError() throws Exception
|
||||
{
|
||||
assertTrue(ParserUtils
|
||||
.testInternalError("<?xml version=\"1.0\"?> <!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\" \"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\"> <html xmlns=\"http://www.w3.org/1999/xhtml\"> <head> <title> Internal error in gateway </title> </head> <body> <h1> Internal error in gateway </h1> </body> </html>"));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue