Fix failing tests
This commit is contained in:
Timothy Bish 2016-10-06 15:03:33 -04:00
parent baef8f8ec2
commit a2995b7614
1 changed files with 6 additions and 0 deletions

View File

@ -894,18 +894,24 @@ public class JMSMappingOutboundTransformerTest {
case QUEUE_TYPE: case QUEUE_TYPE:
mockDestination = Mockito.mock(ActiveMQQueue.class); mockDestination = Mockito.mock(ActiveMQQueue.class);
Mockito.when(mockDestination.getQualifiedName()).thenReturn("queue://" + TEST_ADDRESS); Mockito.when(mockDestination.getQualifiedName()).thenReturn("queue://" + TEST_ADDRESS);
Mockito.when(mockDestination.isQueue()).thenReturn(true);
break; break;
case TOPIC_TYPE: case TOPIC_TYPE:
mockDestination = Mockito.mock(ActiveMQTopic.class); mockDestination = Mockito.mock(ActiveMQTopic.class);
Mockito.when(mockDestination.getQualifiedName()).thenReturn("topic://" + TEST_ADDRESS); Mockito.when(mockDestination.getQualifiedName()).thenReturn("topic://" + TEST_ADDRESS);
Mockito.when(mockDestination.isTopic()).thenReturn(true);
break; break;
case TEMP_QUEUE_TYPE: case TEMP_QUEUE_TYPE:
mockDestination = Mockito.mock(ActiveMQTempQueue.class); mockDestination = Mockito.mock(ActiveMQTempQueue.class);
Mockito.when(mockDestination.getQualifiedName()).thenReturn("tempQueue://" + TEST_ADDRESS); Mockito.when(mockDestination.getQualifiedName()).thenReturn("tempQueue://" + TEST_ADDRESS);
Mockito.when(mockDestination.isQueue()).thenReturn(true);
Mockito.when(mockDestination.isTemporary()).thenReturn(true);
break; break;
case TEMP_TOPIC_TYPE: case TEMP_TOPIC_TYPE:
mockDestination = Mockito.mock(ActiveMQTempTopic.class); mockDestination = Mockito.mock(ActiveMQTempTopic.class);
Mockito.when(mockDestination.getQualifiedName()).thenReturn("tempTopic://" + TEST_ADDRESS); Mockito.when(mockDestination.getQualifiedName()).thenReturn("tempTopic://" + TEST_ADDRESS);
Mockito.when(mockDestination.isTopic()).thenReturn(true);
Mockito.when(mockDestination.isTemporary()).thenReturn(true);
break; break;
default: default:
throw new IllegalArgumentException("Invliad Destination Type given/"); throw new IllegalArgumentException("Invliad Destination Type given/");