Skip to content

Commit a573fd4

Browse files
committed
Fix JMS IT
1 parent 3352962 commit a573fd4

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

sdk/spring/spring-cloud-azure-integration-tests/src/test/java/com/azure/spring/cloud/integration/tests/servicebus/jms/ServiceBusJmsConnectionStringIT.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
// Licensed under the MIT License.
33
package com.azure.spring.cloud.integration.tests.servicebus.jms;
44

5+
import com.azure.servicebus.jms.ServiceBusJmsConnectionFactory;
56
import jakarta.jms.ConnectionFactory;
67
import org.junit.jupiter.api.Assertions;
78
import org.junit.jupiter.api.Test;
89
import org.junit.jupiter.api.Timeout;
9-
import org.messaginghub.pooled.jms.JmsPoolConnectionFactory;
1010
import org.slf4j.Logger;
1111
import org.slf4j.LoggerFactory;
1212
import org.springframework.beans.factory.annotation.Autowired;
@@ -36,7 +36,7 @@ public ServiceBusJmsConnectionStringIT() {
3636
@Test
3737
@Timeout(70)
3838
void testJmsOperationViaConnStringAndCachingConnection() throws InterruptedException {
39-
Assertions.assertSame(JmsPoolConnectionFactory.class, connectionFactory.getClass());
39+
Assertions.assertSame(ServiceBusJmsConnectionFactory.class, connectionFactory.getClass());
4040
LOGGER.info("ServiceBusJmsConnectionStringIT begin.");
4141
this.exchangeMessage(jmsTemplate, CONNECTION_STRING_POOL_API_QUEUE_NAME);
4242
LOGGER.info("ServiceBusJmsConnectionStringIT end.");

sdk/spring/spring-cloud-azure-integration-tests/src/test/resources/application-servicebus-jms-passwordless-caching.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ spring:
44
credential:
55
token-credential-bean-name: integrationTestTokenCredential
66
jms:
7+
cache:
8+
enabled:
9+
true
710
servicebus:
811
pool:
912
enabled: false

sdk/spring/spring-cloud-azure-integration-tests/src/test/resources/application-servicebus-jms-passwordless-pool.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ spring:
99
pricing-tier: standard
1010
passwordless-enabled: true
1111
namespace: ${AZURE_SERVICE_BUS_NAMESPACE}
12+
pool:
13+
enabled: true

0 commit comments

Comments
 (0)