Skip to content
Permalink
Browse files
NO-JIRA fixing openTracingPluginTest
  • Loading branch information
clebertsuconic committed Apr 27, 2022
1 parent 72251dc commit 4bfba9fe96f6b311b60e0674a68baefe0aebfd96
Showing 1 changed file with 3 additions and 1 deletion.
@@ -115,8 +115,10 @@ public void assertOnSendException() throws ActiveMQException {
public void assertAfterDeliver() throws ActiveMQException {
ServerConsumer consumer = mock(ServerConsumer.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);

0 comments on commit 4bfba9f

Please sign in to comment.