Skip to content
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

Update @MessageMapping to match input/output cardinality #7669

Merged

Conversation

eleftherias
Copy link
Contributor

This commit fixes the tests failures when using spring version 5.2.2.BUILD-SNAPSHOT.

This Spring Framework issue,

refines each @MessageMapping to match only the RSocket interaction type it fits based on the input and output cardinality of the handler method.

After the commit that fixes the above issue, the test retrieveFluxWhenDataStringAndPublicThenGranted is invalid because the destination "retrieve-flux" does not support REQUEST_STREAM, and only support REQUEST_CHANNEL, since the input cardinality is 2.

Additionally, the destination "send" was not being used in the test sendWhenPublicThenGranted because it the provided input of cardinality 1 did not match the expect Flux input of cardinality 2.

@rwinch rwinch self-assigned this Nov 22, 2019
@rwinch rwinch merged commit 8a95e57 into spring-projects:master Nov 22, 2019
@rwinch rwinch added this to the 5.2.2 milestone Nov 22, 2019
@rwinch rwinch added in: rsocket type: bug A general bug in: build An issue in the build and removed in: rsocket labels Nov 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: build An issue in the build type: bug A general bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants