Ignore:
Timestamp:
06/28/13 15:47:03 (11 years ago)
Author:
pharms
Message:
  • corrected test cases
Location:
trunk/autoquest-htmlmonitor-test/src/test/java/de/ugoe/cs/autoquest/htmlmonitor
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-htmlmonitor-test/src/test/java/de/ugoe/cs/autoquest/htmlmonitor/HtmlMonitorServerTest.java

    r1078 r1245  
    594594            assertEquals(200, response.getStatusLine().getStatusCode()); 
    595595            assertTrue 
    596                 ((response.getEntity() == null) || (response.getEntity().getContentLength() == 0)); 
     596                ((response.getEntity() == null) || (response.getEntity().getContentLength() == 0) || 
     597                 ((response.getEntity().getContentLength() == 1) && 
     598                  (response.getEntity().getContent().read() == ' '))); 
    597599        } 
    598600        finally { 
  • trunk/autoquest-htmlmonitor-test/src/test/java/de/ugoe/cs/autoquest/htmlmonitor/HtmlMonitorTest.java

    r1229 r1245  
    782782            assertEquals(200, response.getStatusLine().getStatusCode()); 
    783783            assertTrue 
    784                 ((response.getEntity() == null) || (response.getEntity().getContentLength() == 0)); 
     784                ((response.getEntity() == null) || (response.getEntity().getContentLength() == 0) || 
     785                 ((response.getEntity().getContentLength() == 1) && 
     786                  (response.getEntity().getContent().read() == ' '))); 
    785787        } 
    786788        finally { 
Note: See TracChangeset for help on using the changeset viewer.