@Test public void shouldWrapMessageProducer() throws Exception { final MessageProducer producer = mock(MessageProducer.class); TraceeMessageWriter.wrap(producer).close(); verify(producer).close(); }
public static MessageProducer wrap(MessageProducer messageProducer) { return new TraceeMessageProducer(messageProducer); }
TraceeMessageWriter { public static MessageProducer wrap(MessageProducer messageProducer) { return new TraceeMessageProducer(messageProducer); } }
TraceeMessageWriter { public static MessageProducer wrap(MessageProducer messageProducer) { return new TraceeMessageProducer(messageProducer); } private  TraceeMessageWriter(); }
TraceeMessageWriter { public static MessageProducer wrap(MessageProducer messageProducer) { return new TraceeMessageProducer(messageProducer); } private  TraceeMessageWriter(); static MessageProducer wrap(MessageProducer messageProducer); static QueueSender wrap(QueueSender queueSender); static TopicPublisher wrap(TopicPublisher topicPublisher); }
TraceeMessageWriter { public static MessageProducer wrap(MessageProducer messageProducer) { return new TraceeMessageProducer(messageProducer); } private  TraceeMessageWriter(); static MessageProducer wrap(MessageProducer messageProducer); static QueueSender wrap(QueueSender queueSender); static TopicPublisher wrap(TopicPublisher topicPublisher);  }