use of org.apache.headers.coloc.types.OutHeaderT in project cxf by apache.
the class AbstractHeaderServiceDocLitTest method verifyOutHeaderParts.
protected void verifyOutHeaderParts(HeaderTester ht) {
getLogger().debug("Client: calling outHeader");
OutHeaderT outHeader = new OutHeaderT();
outHeader.setRequestType(HeaderTesterUtil.OUT_REQUEST_TYPE);
OutHeaderResponseT theResponse = new OutHeaderResponseT();
theResponse.setResponseType("bogus");
Holder<OutHeaderResponseT> respHolder = new Holder<OutHeaderResponseT>();
respHolder.value = theResponse;
Holder<HeaderInfo> holder = new Holder<HeaderInfo>();
HeaderInfo headerInfo = new HeaderInfo();
headerInfo.setMessage(HeaderTesterUtil.OUT_MESSAGE_IN);
headerInfo.setOriginator(HeaderTesterUtil.OUT_ORIGINATOR_IN);
holder.value = headerInfo;
ht.outHeader(outHeader, respHolder, holder);
assertEquals(HeaderTesterUtil.OUT_MESSAGE_OUT, holder.value.getMessage());
assertEquals(HeaderTesterUtil.OUT_ORIGINATOR_OUT, holder.value.getOriginator());
assertEquals(HeaderTesterUtil.OUT_RESPONSE_TYPE, respHolder.value.getResponseType());
}
use of org.apache.headers.coloc.types.OutHeaderT in project cxf by apache.
the class AbstractHeaderServiceRpcLitTest method verifyOutHeaderParts.
protected void verifyOutHeaderParts(HeaderTester ht) {
getLogger().debug("Client: calling outHeader");
OutHeaderT outHeader = new OutHeaderT();
outHeader.setRequestType(HeaderTesterUtil.OUT_REQUEST_TYPE);
OutHeaderResponseT theResponse = new OutHeaderResponseT();
theResponse.setResponseType("bogus");
Holder<OutHeaderResponseT> respHolder = new Holder<OutHeaderResponseT>();
respHolder.value = theResponse;
Holder<HeaderInfo> holder = new Holder<HeaderInfo>();
HeaderInfo headerInfo = new HeaderInfo();
headerInfo.setMessage(HeaderTesterUtil.OUT_MESSAGE_IN);
headerInfo.setOriginator(HeaderTesterUtil.OUT_ORIGINATOR_IN);
holder.value = headerInfo;
ht.outHeader(outHeader, respHolder, holder);
assertEquals(HeaderTesterUtil.OUT_MESSAGE_OUT, holder.value.getMessage());
assertEquals(HeaderTesterUtil.OUT_ORIGINATOR_OUT, holder.value.getOriginator());
assertEquals(HeaderTesterUtil.OUT_RESPONSE_TYPE, respHolder.value.getResponseType());
}
Aggregations