NO-JIRA fixing openTracingPluginTest
This commit is contained in:
parent
72251dc947
commit
4bfba9fe96
|
@ -115,8 +115,10 @@ public class OpenTracingPluginTest {
|
||||||
public void assertAfterDeliver() throws ActiveMQException {
|
public void assertAfterDeliver() throws ActiveMQException {
|
||||||
ServerConsumer consumer = mock(ServerConsumer.class);
|
ServerConsumer consumer = mock(ServerConsumer.class);
|
||||||
MessageReference reference = mock(MessageReference.class);
|
MessageReference reference = mock(MessageReference.class);
|
||||||
|
Message mockMessage = mock(Message.class);
|
||||||
|
|
||||||
when(reference.getMessage().getUserContext(Span.class)).thenReturn(span);
|
when(reference.getMessage()).thenReturn(mockMessage);
|
||||||
|
when(mockMessage.getUserContext(Span.class)).thenReturn(span);
|
||||||
|
|
||||||
plugin.afterDeliver(consumer, reference);
|
plugin.afterDeliver(consumer, reference);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue