Skip to content

Commit cf2e1ff

Browse files
committed
Fix failing test
Issue: SPR-10605
1 parent 64baef9 commit cf2e1ff

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

spring-websocket/src/test/java/org/springframework/web/socket/server/endpoint/SpringConfiguratorTests.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ public void getEndpointInstanceSingletonByType() throws Exception {
7979

8080
@Test
8181
public void getEndpointInstanceSingletonByComponentName() throws Exception {
82-
AlternativeEchoEndpoint expected = this.webAppContext.getBean(AlternativeEchoEndpoint.class);
83-
AlternativeEchoEndpoint actual = this.configurator.getEndpointInstance(AlternativeEchoEndpoint.class);
82+
AnotherEchoEndpoint expected = this.webAppContext.getBean(AnotherEchoEndpoint.class);
83+
AnotherEchoEndpoint actual = this.configurator.getEndpointInstance(AnotherEchoEndpoint.class);
8484
assertSame(expected, actual);
8585
}
8686

@@ -115,14 +115,14 @@ public void onOpen(Session session, EndpointConfig config) {
115115
}
116116
}
117117

118-
@Component("echoEndpoint")
119-
private static class AlternativeEchoEndpoint extends Endpoint {
118+
@Component("myEchoEndpoint")
119+
private static class AnotherEchoEndpoint extends Endpoint {
120120

121121
@SuppressWarnings("unused")
122122
private final EchoService service;
123123

124124
@Autowired
125-
public AlternativeEchoEndpoint(EchoService service) {
125+
public AnotherEchoEndpoint(EchoService service) {
126126
this.service = service;
127127
}
128128

0 commit comments

Comments
 (0)