@Test public void testCopyReplyContents() throws Exception { AdaptrisMessage reply = new DefaultMessageFactory().newMessage("hello world"); AdaptrisMessage original = new DefaultMessageFactory().newMessage(); copyReplyContents(reply, original); assertEquals("hello world", original.getContent()); }
protected void copyReplyContents(AdaptrisMessage reply, AdaptrisMessage original) throws ProduceException { try { MessageHelper.copyPayload(reply, original); } catch (Exception e) { throw ExceptionHelper.wrapProduceException(e); } }
RequestReplyProducerBase extends AdaptrisMessageProducerImp { protected void copyReplyContents(AdaptrisMessage reply, AdaptrisMessage original) throws ProduceException { try { MessageHelper.copyPayload(reply, original); } catch (Exception e) { throw ExceptionHelper.wrapProduceException(e); } } }
RequestReplyProducerBase extends AdaptrisMessageProducerImp { protected void copyReplyContents(AdaptrisMessage reply, AdaptrisMessage original) throws ProduceException { try { MessageHelper.copyPayload(reply, original); } catch (Exception e) { throw ExceptionHelper.wrapProduceException(e); } }  }
RequestReplyProducerBase extends AdaptrisMessageProducerImp { protected void copyReplyContents(AdaptrisMessage reply, AdaptrisMessage original) throws ProduceException { try { MessageHelper.copyPayload(reply, original); } catch (Exception e) { throw ExceptionHelper.wrapProduceException(e); } }   }
RequestReplyProducerBase extends AdaptrisMessageProducerImp { protected void copyReplyContents(AdaptrisMessage reply, AdaptrisMessage original) throws ProduceException { try { MessageHelper.copyPayload(reply, original); } catch (Exception e) { throw ExceptionHelper.wrapProduceException(e); } }    }