Skip to content

Commit 8a95e57

Browse files
eleftheriasrwinch
authored andcommitted
Update @MessageMapping to match input/output cardinality
1 parent cd0bec4 commit 8a95e57

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

config/src/test/java/org/springframework/security/config/annotation/rsocket/RSocketMessageHandlerITests.java

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -185,19 +185,6 @@ public void retrieveFluxWhenDataStringAndSecureThenDenied() throws Exception {
185185
assertThat(this.controller.payloads).isEmpty();
186186
}
187187

188-
@Test
189-
public void retrieveFluxWhenDataStringAndPublicThenGranted() throws Exception {
190-
String data = "a";
191-
List<String> hi = this.requester.route("retrieve-flux")
192-
.data(data)
193-
.retrieveFlux(String.class)
194-
.collectList()
195-
.block();
196-
197-
assertThat(hi).contains("hello a");
198-
assertThat(this.controller.payloads).containsOnly(data);
199-
}
200-
201188
@Test
202189
public void sendWhenSecureThenDenied() throws Exception {
203190
String data = "hi";
@@ -287,7 +274,7 @@ Flux<String> retrieveFlux(Flux<String> payload) {
287274
}
288275

289276
@MessageMapping({"secure.send", "send"})
290-
Mono<Void> send(Flux<String> payload) {
277+
Mono<Void> send(Mono<String> payload) {
291278
return payload
292279
.doOnNext(this::add)
293280
.then(Mono.fromRunnable(() -> {

0 commit comments

Comments
 (0)