@Test public void testProduce_Message() throws Exception { AdaptrisMessage msg = AdaptrisMessageFactory.getDefaultInstance().newMessage("dummy"); MockMessageProducer mock = createAndStart(); try { mock.produce(msg); assertEquals(1, mock.getMessages().size()); } finally { LifecycleHelper.stopAndClose(mock); } }
@Override public final void produce(AdaptrisMessage msg) throws ProduceException { doProduce(msg, endpoint(msg)); }
ProduceOnlyProducerImp extends AdaptrisMessageProducerImp { @Override public final void produce(AdaptrisMessage msg) throws ProduceException { doProduce(msg, endpoint(msg)); } }
ProduceOnlyProducerImp extends AdaptrisMessageProducerImp { @Override public final void produce(AdaptrisMessage msg) throws ProduceException { doProduce(msg, endpoint(msg)); }  }
ProduceOnlyProducerImp extends AdaptrisMessageProducerImp { @Override public final void produce(AdaptrisMessage msg) throws ProduceException { doProduce(msg, endpoint(msg)); }  @Override final AdaptrisMessage request(AdaptrisMessage msg); @Override final AdaptrisMessage request(AdaptrisMessage msg, long timeout); @Override @Deprecated @Removal(version = "4.0") final AdaptrisMessage request(AdaptrisMessage msg,
                                       ProduceDestination destination); @Override @Deprecated @Removal(version = "4.0") final AdaptrisMessage request(AdaptrisMessage msg,
                                       ProduceDestination destination,
                                       long timeout); @Override final void produce(AdaptrisMessage msg); @Deprecated @Removal(version = "4.0") @Override final void produce(AdaptrisMessage msg, ProduceDestination destination); }
ProduceOnlyProducerImp extends AdaptrisMessageProducerImp { @Override public final void produce(AdaptrisMessage msg) throws ProduceException { doProduce(msg, endpoint(msg)); }  @Override final AdaptrisMessage request(AdaptrisMessage msg); @Override final AdaptrisMessage request(AdaptrisMessage msg, long timeout); @Override @Deprecated @Removal(version = "4.0") final AdaptrisMessage request(AdaptrisMessage msg,
                                       ProduceDestination destination); @Override @Deprecated @Removal(version = "4.0") final AdaptrisMessage request(AdaptrisMessage msg,
                                       ProduceDestination destination,
                                       long timeout); @Override final void produce(AdaptrisMessage msg); @Deprecated @Removal(version = "4.0") @Override final void produce(AdaptrisMessage msg, ProduceDestination destination);  }