Changeset 1936


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

temp dump to check up on why this happens on the integration build-server (ci.outerthought.org)
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/TemplateServiceHostIdentifierTest.java

    r1526 r1936  
    7575    private Response testRequest(String path) throws Exception { 
    7676        Response response = runtime.getRestserviceManager().getComponent().getContext().getClientDispatcher().handle(new Request(Method.GET, "http://localhost:" + HTTP_TEST_PORT + path)); 
     77         
     78        // start temp-code for checking test failures only @ci.outerthought.org 
     79        if (response.getStatus().getCode() != 200) { 
     80            // dump response body before assertion to retrieve some more detail in the logs on hudson 
     81            System.out.println("Unexpected response code. Dumping BODY:--\n" + response.getEntityAsText() + "\n--"); 
     82        } 
     83        // end temp-code 
     84         
    7785        assertEquals(200, response.getStatus().getCode()); 
    7886        return response; 
Note: See TracChangeset for help on using the changeset viewer.