Retain original case when mapping endpoint paths
Update `MappingWebEndpointPathMapper` to keep the original case rather than using a lower-case version. Closes gh-14773
This commit is contained in:
parent
935d621a42
commit
b25e222136
|
|
@ -46,7 +46,7 @@ class MappingWebEndpointPathMapper implements PathMapper {
|
|||
|
||||
@Override
|
||||
public String getRootPath(EndpointId endpointId) {
|
||||
return this.pathMapping.getOrDefault(endpointId, endpointId.toLowerCaseString());
|
||||
return this.pathMapping.getOrDefault(endpointId, endpointId.toString());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ public class MappingWebEndpointPathMapperTests {
|
|||
MappingWebEndpointPathMapper mapper = new MappingWebEndpointPathMapper(
|
||||
Collections.emptyMap());
|
||||
assertThat(mapper.getRootPath(EndpointId.of("testEndpoint")))
|
||||
.isEqualTo("testendpoint");
|
||||
.isEqualTo("testEndpoint");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ public interface PathMapper {
|
|||
|
||||
@Override
|
||||
public String getRootPath(EndpointId endpointId) {
|
||||
return endpointId.toLowerCaseString();
|
||||
return endpointId.toString();
|
||||
}
|
||||
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue