-
Couldn't load subscription status.
- Fork 38.8k
Closed
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancementA general enhancement
Milestone
Description
ServerSentEvent is an immutable class but does not implement equals and hashCode.
So something like this does not work:
StepVerifier.create(responseBodyFlux)
.expectNext(ServerSentEvent.builder(ChatResponseMessage("And")).build())And instead it forces you to write something like this:
StepVerifier.create(responseBodyFlux)
.consumeNextWith { event -> assertThat(event.data()?.text).isEqualTo("And") }which is both inconvenient and unexpected.
Metadata
Metadata
Assignees
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancementA general enhancement