DATAREST-1294 - Polishing.
Aligned with general request attribute naming conventions and prefixed the one we now use with the class' name. Altered the local attribute name to EFFECTIVE_REPOSITORY_RESOURCE_LOOKUP_PATH. Renamed the constant holding the name from …_KEY to …_ATTRIBUTE.
This commit is contained in:
@@ -281,7 +281,7 @@ public class RepositoryRestHandlerMappingUnitTests {
|
||||
handlerMapping.afterPropertiesSet();
|
||||
handlerMapping.lookupHandlerMethod("/people/search/findByLastnameLike", mockRequest);
|
||||
|
||||
assertThat(mockRequest.getAttribute(RepositoryRestHandlerMapping.EFFECTIVE_LOOKUP_PATH_KEY)) //
|
||||
assertThat(mockRequest.getAttribute(RepositoryRestHandlerMapping.EFFECTIVE_LOOKUP_PATH_ATTRIBUTE)) //
|
||||
.isInstanceOfSatisfying(PathPattern.class, it -> {
|
||||
assertThat(it.getPatternString()).isEqualTo("/people/search/{search}");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user