Fix assertions in HttpClientSseClientTransportTests

This commit is contained in:
Daniel Garnier-Moiroux 2026-05-04 15:35:48 +02:00
commit 807cd95a58

View file

@ -483,7 +483,7 @@ class HttpClientSseClientTransportTests {
void testMessageEndpointValidation() throws InvalidSseMessageEndpointException {
var uriCaptor = ArgumentCaptor.forClass(URI.class);
verify(sseMessageEndpointValidator).validate(uriCaptor.capture(), matches("/message\\?sessionId=[a-z0-9-]+"));
assertThat(uriCaptor.getValue().toString()).matches("http://localhost:\\d+/sse");
assertThat(uriCaptor.getValue().toString()).matches(host + "/sse");
}
@Test