From cf2e1ffc65a2684493cae60580fa76703fa006b7 Mon Sep 17 00:00:00 2001 From: Rossen Stoyanchev Date: Thu, 22 Aug 2013 21:53:57 -0400 Subject: [PATCH] Fix failing test Issue: SPR-10605 --- .../server/endpoint/SpringConfiguratorTests.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/spring-websocket/src/test/java/org/springframework/web/socket/server/endpoint/SpringConfiguratorTests.java b/spring-websocket/src/test/java/org/springframework/web/socket/server/endpoint/SpringConfiguratorTests.java index 62b69bf039..d678de13e5 100644 --- a/spring-websocket/src/test/java/org/springframework/web/socket/server/endpoint/SpringConfiguratorTests.java +++ b/spring-websocket/src/test/java/org/springframework/web/socket/server/endpoint/SpringConfiguratorTests.java @@ -79,8 +79,8 @@ public class SpringConfiguratorTests { @Test public void getEndpointInstanceSingletonByComponentName() throws Exception { - AlternativeEchoEndpoint expected = this.webAppContext.getBean(AlternativeEchoEndpoint.class); - AlternativeEchoEndpoint actual = this.configurator.getEndpointInstance(AlternativeEchoEndpoint.class); + AnotherEchoEndpoint expected = this.webAppContext.getBean(AnotherEchoEndpoint.class); + AnotherEchoEndpoint actual = this.configurator.getEndpointInstance(AnotherEchoEndpoint.class); assertSame(expected, actual); } @@ -115,14 +115,14 @@ public class SpringConfiguratorTests { } } - @Component("echoEndpoint") - private static class AlternativeEchoEndpoint extends Endpoint { + @Component("myEchoEndpoint") + private static class AnotherEchoEndpoint extends Endpoint { @SuppressWarnings("unused") private final EchoService service; @Autowired - public AlternativeEchoEndpoint(EchoService service) { + public AnotherEchoEndpoint(EchoService service) { this.service = service; }