Skip to content

Fix exception message for method doPoll in JpaExecutor #9997

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 28, 2025

Conversation

mjd507
Copy link
Contributor

@mjd507 mjd507 commented Apr 28, 2025

using @ParameterizedTest to aggregate similar unit test cases

Copy link
Member

@artembilan artembilan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I cannot accept those @ParameterizedTest changes.
Doesn't look like it makes our life easier: so much new if...else logic to satisfy.
I would prefer to have duplication in different test method, but as linear as possible, then some extra logic to meet @ParameterizedTest set requirements.
This also does not make it more flexible. If we add a new scenario, and would try to cover it in the generic @ParameterizedTest method, that may lead to failure for existing scenarios.
We may think that there is a bug in the main code, but it could simply be a problem of the test method. Just because it is too complex to deal with all the @ParameterizedTest variants.

Just my opinion where I would prefer to not do such a refactoring.

Thanks

@mjd507
Copy link
Contributor Author

mjd507 commented Apr 28, 2025

Thank you, actually I also have this feeling, removed

@mjd507 mjd507 changed the title polish unit test for spring-integration-jpa Fix exception message for method doPoll in JpaExecutor Apr 28, 2025
@artembilan artembilan added this to the 6.5.0 milestone Apr 28, 2025
@artembilan artembilan merged commit 119209d into spring-projects:main Apr 28, 2025
3 checks passed
spring-builds pushed a commit that referenced this pull request Apr 28, 2025
Signed-off-by: Jiandong Ma <[email protected]>

[[email protected] Improve commit message]

Fixes: #9997

The `nativeQuery` has to be mention in the possible required options to configure.

(cherry picked from commit 119209d)
spring-builds pushed a commit that referenced this pull request Apr 28, 2025
Signed-off-by: Jiandong Ma <[email protected]>

[[email protected] Improve commit message]

Fixes: #9997

The `nativeQuery` has to be mention in the possible required options to configure.

(cherry picked from commit 119209d)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants