@Test @SuppressWarnings("deprecation") public void testProduce() throws Exception { NullMessageProducer producer = new NullMessageProducer(); AdaptrisMessage msg = AdaptrisMessageFactory.getDefaultInstance().newMessage(); try { LifecycleHelper.prepare(producer); LifecycleHelper.initAndStart(producer); producer.produce(msg); producer.produce(msg, (m) -> null); } finally { LifecycleHelper.stopAndClose(producer); } }
@Override public void produce(AdaptrisMessage msg) throws ProduceException { }
NullMessageProducer extends AdaptrisMessageProducerImp { @Override public void produce(AdaptrisMessage msg) throws ProduceException { } }
NullMessageProducer extends AdaptrisMessageProducerImp { @Override public void produce(AdaptrisMessage msg) throws ProduceException { } NullMessageProducer(); }
NullMessageProducer extends AdaptrisMessageProducerImp { @Override public void produce(AdaptrisMessage msg) throws ProduceException { } NullMessageProducer(); @Override AdaptrisMessage request(AdaptrisMessage msg); @Override AdaptrisMessage request(AdaptrisMessage msg, long timeout); @Override @Deprecated @Removal(version = "4.0.0") AdaptrisMessage request(AdaptrisMessage msg, ProduceDestination destination); @Override @Deprecated @Removal(version = "4.0.0") AdaptrisMessage request(AdaptrisMessage msg, ProduceDestination destination, long timeout); @Override void prepare(); @Override String endpoint(AdaptrisMessage msg); @Override void produce(AdaptrisMessage msg); @Override @Deprecated @Removal(version = "4.0.0") void produce(AdaptrisMessage msg, ProduceDestination destination); }
NullMessageProducer extends AdaptrisMessageProducerImp { @Override public void produce(AdaptrisMessage msg) throws ProduceException { } NullMessageProducer(); @Override AdaptrisMessage request(AdaptrisMessage msg); @Override AdaptrisMessage request(AdaptrisMessage msg, long timeout); @Override @Deprecated @Removal(version = "4.0.0") AdaptrisMessage request(AdaptrisMessage msg, ProduceDestination destination); @Override @Deprecated @Removal(version = "4.0.0") AdaptrisMessage request(AdaptrisMessage msg, ProduceDestination destination, long timeout); @Override void prepare(); @Override String endpoint(AdaptrisMessage msg); @Override void produce(AdaptrisMessage msg); @Override @Deprecated @Removal(version = "4.0.0") void produce(AdaptrisMessage msg, ProduceDestination destination);  }