Skip to content

Commit 4bff95a

Browse files
committed
Remove obsolete test case from RepositoryRestHandlerMappingUnitTests.
The test started to fail when Spring Framework 6 disabled trailing slash path matching (see spring-projects/spring-framework#28552 for details). If adapted to the non-trailing version, it basically duplicates another test already present in the test class.
1 parent 29b7305 commit 4bff95a

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/RepositoryRestHandlerMappingUnitTests.java

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -157,20 +157,6 @@ void returnsRootHandlerMethodWithBaseUriConfigured() throws Exception {
157157
assertThat(method.getMethod()).isEqualTo(rootHandlerMethod);
158158
}
159159

160-
@Test // DATAREST-276
161-
void returnsRepositoryHandlerMethodForAbsoluteBaseUri() throws Exception {
162-
163-
when(mappings.exportsTopLevelResourceFor("/people")).thenReturn(true);
164-
mockRequest = new MockHttpServletRequest("GET", "/base/people/");
165-
166-
configuration.setBasePath("/base");
167-
168-
HandlerMethod method = handlerMapping.get().getHandlerInternal(mockRequest);
169-
170-
assertThat(method).isNotNull();
171-
assertThat(method.getMethod()).isEqualTo(listEntitiesMethod);
172-
}
173-
174160
@Test // DATAREST-276
175161
void returnsRepositoryHandlerMethodForAbsoluteBaseUriWithServletMapping() throws Exception {
176162

0 commit comments

Comments
 (0)