This is an automated email from the ASF dual-hosted git repository.
clebertsuconic pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/activemq-artemis.git
The following commit(s) were added to refs/heads/main by this push:
new 4bfba9fe96 NO-JIRA fixing openTracingPluginTest
4bfba9fe96 is described below
commit 4bfba9fe96f6b311b60e0674a68baefe0aebfd96
Author: Clebert Suconic <[email protected]>
AuthorDate: Wed Apr 27 16:03:30 2022 -0400
NO-JIRA fixing openTracingPluginTest
---
.../apache/activemq/artemis/jms/example/OpenTracingPluginTest.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git
a/examples/features/standard/opentracing/src/test/java/org/apache/activemq/artemis/jms/example/OpenTracingPluginTest.java
b/examples/features/standard/opentracing/src/test/java/org/apache/activemq/artemis/jms/example/OpenTracingPluginTest.java
index c80e3162ee..653aba695e 100644
---
a/examples/features/standard/opentracing/src/test/java/org/apache/activemq/artemis/jms/example/OpenTracingPluginTest.java
+++
b/examples/features/standard/opentracing/src/test/java/org/apache/activemq/artemis/jms/example/OpenTracingPluginTest.java
@@ -115,8 +115,10 @@ public class OpenTracingPluginTest {
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);