Changeset 1937 for trunk


Ignore:
Timestamp:
2011-08-31 15:33:46 (9 months ago)
Author:
mpo
Message:

another test that should dump some output
adds to r1736
see also #461

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/kauri-template/kauri-template-service-impl/src/test/java/org/kauriproject/template/service/test/TemplateConfTest.java

    r1526 r1937  
    5858    private Response testRequest(String path) throws Exception { 
    5959        Response response = runtime.getRestserviceManager().getComponent().getContext().getClientDispatcher().handle(new Request(Method.GET, "http://localhost:" + HTTP_TEST_PORT + path)); 
     60         
     61        // start temp-code for checking test failures only @ci.outerthought.org 
     62        if (response.getStatus().getCode() != 200) { 
     63            // dump response body before assertion to retrieve some more detail in the logs on hudson 
     64            System.out.println("Unexpected response code. Dumping BODY:--\n" + response.getEntityAsText() + "\n--"); 
     65        } 
     66        // end temp-code 
     67         
    6068        assertEquals(200, response.getStatus().getCode()); 
    6169        return response; 
Note: See TracChangeset for help on using the changeset viewer.