You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add test for 2.0.0 bug where unique toString() prevents caching
Added new test cachingConnectionFactoryFailsToReuseProducerWithUniqueToString
that demonstrates the bug in azure-servicebus-jms 2.0.0 where each Queue instance
had a unique toString() like "ServiceBusJmsQueue@11655", which prevented
CachingConnectionFactory from caching producers for the same queue name.
The test verifies that:
- When toString() returns unique values, createProducer is called twice
- Different producers are returned even for the same queue name
- This contrasts with the fixed 2.1.0 behavior where toString() returns
the queue name, enabling proper caching
Co-authored-by: Netyyyy <[email protected]>
Copy file name to clipboardExpand all lines: sdk/spring/spring-cloud-azure-autoconfigure/src/test/java/com/azure/spring/cloud/autoconfigure/implementation/jms/ServiceBusJmsConnectionFactoryConfigurationTests.java
0 commit comments