Closed mayur-solace closed 2 weeks ago
This pull request includes changes to improve the handling of ByteArray instances in the XMLMessageMapper class and introduces a new integration test for message consistency in the Solace binder.
ByteArray
XMLMessageMapper
solace-spring-cloud-stream-binder/solace-spring-cloud-stream-binder-core/src/main/java/com/solace/spring/cloud/stream/binder/util/XMLMessageMapper.java
asBytes()
getBuffer()
solace-spring-cloud-stream-binder/solace-spring-cloud-stream-binder/src/test/java/com/solace/spring/cloud/stream/binder/SolaceBinderMessageConsistencyIT.java
This pull request includes changes to improve the handling of
ByteArray
instances in theXMLMessageMapper
class and introduces a new integration test for message consistency in the Solace binder.Improvements to
ByteArray
handling:solace-spring-cloud-stream-binder/solace-spring-cloud-stream-binder-core/src/main/java/com/solace/spring/cloud/stream/binder/util/XMLMessageMapper.java
: Updated the handling ofByteArray
instances to use theasBytes()
method instead ofgetBuffer()
for better consistency and reliability. [1] [2]New integration test:
solace-spring-cloud-stream-binder/solace-spring-cloud-stream-binder/src/test/java/com/solace/spring/cloud/stream/binder/SolaceBinderMessageConsistencyIT.java
: Added a comprehensive integration test to ensure message consistency when forwarded through the Solace binder. This test covers various message types and batch modes, verifying payloads and headers.