Skip to content

Commit

Permalink
Fix failing test
Browse files Browse the repository at this point in the history
Issue: SPR-10605
  • Loading branch information
rstoyanchev committed Aug 23, 2013
1 parent 64baef9 commit cf2e1ff
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ public void getEndpointInstanceSingletonByType() throws Exception {

@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);
}

Expand Down Expand Up @@ -115,14 +115,14 @@ public void onOpen(Session session, EndpointConfig config) {
}
}

@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;
}

Expand Down

0 comments on commit cf2e1ff

Please sign in to comment.