提交 cf2e1ffc 编写于 作者: R Rossen Stoyanchev

Fix failing test

Issue: SPR-10605
上级 64baef9f
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册