Deprecate SockJsServiceRegistration#setSupressCors
SockJsServiceRegistration#setSupressCors name contains a typo. It is now deprecated in favor of a correctly spelled method, setSuppressCors. See gh-28853
This commit is contained in:
committed by
Stephane Nicoll
parent
f7c32d3a0b
commit
1cc36e5be9
@@ -166,7 +166,7 @@ public class WebMvcStompWebSocketEndpointRegistrationTests {
|
||||
WebMvcStompWebSocketEndpointRegistration registration =
|
||||
new WebMvcStompWebSocketEndpointRegistration(new String[] {"/foo"}, this.handler, this.scheduler);
|
||||
|
||||
registration.withSockJS().setSupressCors(true);
|
||||
registration.withSockJS().setSuppressCors(true);
|
||||
|
||||
MultiValueMap<HttpRequestHandler, String> mappings = registration.getMappings();
|
||||
assertThat(mappings.size()).isEqualTo(1);
|
||||
|
||||
Reference in New Issue
Block a user