Package org.jembi.openhim.transformers

Examples of org.jembi.openhim.transformers.HttpResponseToRestfulHttpResponseTransformer


  }

  private void excecuteTestCase(String httpStatus, String body, String uuid, Map<String, String> httpHeaders)
      throws Exception, TransformerException {
    setupMocks(httpStatus, body, uuid, httpHeaders);
    HttpResponseToRestfulHttpResponseTransformer trans = new HttpResponseToRestfulHttpResponseTransformer();
    RestfulHttpResponse res = (RestfulHttpResponse) trans.transformMessage(msg, "UTF-8");
    assertEquals(Integer.parseInt(httpStatus), res.getHttpStatus());
    assertEquals(body, res.getBody());
    assertEquals(uuid, res.getUuid());
    assertEquals(httpHeaders, res.getHttpHeaders());
  }
View Full Code Here

TOP

Related Classes of org.jembi.openhim.transformers.HttpResponseToRestfulHttpResponseTransformer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.