Repository: activemq
Updated Branches:
  refs/heads/activemq-5.14.x e2b1675a2 -> 70432bf31


https://issues.apache.org/jira/browse/AMQ-6444

Fix failing tests
(cherry picked from commit a2995b7614a6e15af7958f78bd412ccab00589bb)


Project: http://git-wip-us.apache.org/repos/asf/activemq/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq/commit/70432bf3
Tree: http://git-wip-us.apache.org/repos/asf/activemq/tree/70432bf3
Diff: http://git-wip-us.apache.org/repos/asf/activemq/diff/70432bf3

Branch: refs/heads/activemq-5.14.x
Commit: 70432bf31c01d7d7b743d055f6c4c5b473ae27e8
Parents: e2b1675
Author: Timothy Bish <[email protected]>
Authored: Thu Oct 6 15:03:33 2016 -0400
Committer: Timothy Bish <[email protected]>
Committed: Thu Oct 6 15:04:04 2016 -0400

----------------------------------------------------------------------
 .../amqp/message/JMSMappingOutboundTransformerTest.java        | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq/blob/70432bf3/activemq-amqp/src/test/java/org/apache/activemq/transport/amqp/message/JMSMappingOutboundTransformerTest.java
----------------------------------------------------------------------
diff --git 
a/activemq-amqp/src/test/java/org/apache/activemq/transport/amqp/message/JMSMappingOutboundTransformerTest.java
 
b/activemq-amqp/src/test/java/org/apache/activemq/transport/amqp/message/JMSMappingOutboundTransformerTest.java
index f0167b7..e9da261 100644
--- 
a/activemq-amqp/src/test/java/org/apache/activemq/transport/amqp/message/JMSMappingOutboundTransformerTest.java
+++ 
b/activemq-amqp/src/test/java/org/apache/activemq/transport/amqp/message/JMSMappingOutboundTransformerTest.java
@@ -894,18 +894,24 @@ public class JMSMappingOutboundTransformerTest {
             case QUEUE_TYPE:
                 mockDestination = Mockito.mock(ActiveMQQueue.class);
                 
Mockito.when(mockDestination.getQualifiedName()).thenReturn("queue://" + 
TEST_ADDRESS);
+                Mockito.when(mockDestination.isQueue()).thenReturn(true);
                 break;
             case TOPIC_TYPE:
                 mockDestination = Mockito.mock(ActiveMQTopic.class);
                 
Mockito.when(mockDestination.getQualifiedName()).thenReturn("topic://" + 
TEST_ADDRESS);
+                Mockito.when(mockDestination.isTopic()).thenReturn(true);
                 break;
             case TEMP_QUEUE_TYPE:
                 mockDestination = Mockito.mock(ActiveMQTempQueue.class);
                 
Mockito.when(mockDestination.getQualifiedName()).thenReturn("tempQueue://" + 
TEST_ADDRESS);
+                Mockito.when(mockDestination.isQueue()).thenReturn(true);
+                Mockito.when(mockDestination.isTemporary()).thenReturn(true);
                 break;
             case TEMP_TOPIC_TYPE:
                 mockDestination = Mockito.mock(ActiveMQTempTopic.class);
                 
Mockito.when(mockDestination.getQualifiedName()).thenReturn("tempTopic://" + 
TEST_ADDRESS);
+                Mockito.when(mockDestination.isTopic()).thenReturn(true);
+                Mockito.when(mockDestination.isTemporary()).thenReturn(true);
                 break;
             default:
                 throw new IllegalArgumentException("Invliad Destination Type 
given/");

Reply via email to