-
Notifications
You must be signed in to change notification settings - Fork 626
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add checkConf&Returns into RoutingCF.addTargetCF
When only `AbstractRoutingConnectionFactory.addTargetConnectionFactory()` is used, the `AbstractRoutingConnectionFactory.afterPropertiesSet()` throw an `java.lang.IllegalArgumentException: At least one target factory (or default) is required` because the property `confirms` is `null` (the method `addTargetConnectionFactory` doesn't call `checkConfirmsAndReturns` that fill this field). * add `checkConfirmsAndReturns` into the `AbstractRoutingConnectionFactory .addTargetConnectionFactory()` * using `assertThatNoException()` instead of `catch/fail` **Cherry-pick to `2.4.x` & `2.3.x`**
- Loading branch information
1 parent
a1aba73
commit d5e7c3f
Showing
2 changed files
with
22 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters