Rename HttpServiceClientRegistrarSupport

to AbstractClientHttpServiceRegistrar since it is a registrar and
an extension of Abstract[HttpServiceRegistrar]. Also, a more
friendly name for use in application configuration.

See gh-35244
This commit is contained in:
rstoyanchev
2025-07-31 05:09:34 +01:00
parent 9dbe304cf6
commit c8b2a0f830
7 changed files with 22 additions and 19 deletions
@@ -33,10 +33,10 @@ import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.Mockito.mock;
/**
* Unit tests for {@link HttpServiceClientRegistrarSupport}.
* Unit tests for {@link AbstractClientHttpServiceRegistrar}.
* @author Rossen Stoyanchev
*/
public class HttpServiceClientRegistrarSupportTests {
public class ClientHttpServiceRegistrarTests {
private final TestGroupRegistry groupRegistry = new TestGroupRegistry();
@@ -47,7 +47,7 @@ public class HttpServiceClientRegistrarSupportTests {
List<String> basePackages = List.of(
BasicClient.class.getPackageName(), EchoClientA.class.getPackageName());
HttpServiceClientRegistrarSupport registrar = new HttpServiceClientRegistrarSupport() {
AbstractClientHttpServiceRegistrar registrar = new AbstractClientHttpServiceRegistrar() {
@Override
protected void registerHttpServices(GroupRegistry registry, AnnotationMetadata importingClassMetadata) {
@@ -39,12 +39,12 @@ import org.springframework.web.service.registry.greeting.GreetingB;
import static org.assertj.core.api.Assertions.assertThat;
/**
* Tests for {@link ImportHttpServicesRegistrar}.
* Tests for {@link ImportHttpServiceRegistrar}.
*
* @author Rossen Stoyanchev
* @author Stephane Nicoll
*/
public class ImportHttpServicesRegistrarTests {
public class ImportHttpServiceRegistrarTests {
private static final String ECHO_GROUP = "echo";
@@ -53,7 +53,7 @@ public class ImportHttpServicesRegistrarTests {
private final TestGroupRegistry groupRegistry = new TestGroupRegistry();
private final ImportHttpServicesRegistrar registrar = new ImportHttpServicesRegistrar();
private final ImportHttpServiceRegistrar registrar = new ImportHttpServiceRegistrar();
@Test