mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Rename ApiDeprecationHandler to insert "Version"
The name is a bit long, but it is necessary to indicate it's a handler for a deprecation version, and the decision is based on the version, not an individual endpoint. See gh-35049
This commit is contained in:
+3
-3
@@ -28,10 +28,10 @@ import org.springframework.web.testfixture.servlet.MockHttpServletResponse;
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
/**
|
||||
* Unit tests for {@link StandardApiDeprecationHandler}.
|
||||
* Unit tests for {@link StandardApiVersionDeprecationHandler}.
|
||||
* @author Rossen Stoyanchev
|
||||
*/
|
||||
public class StandardApiDeprecationHandlerTests {
|
||||
public class StandardApiVersionDeprecationHandlerTests {
|
||||
|
||||
private final MockHttpServletRequest request = new MockHttpServletRequest();
|
||||
|
||||
@@ -45,7 +45,7 @@ public class StandardApiDeprecationHandlerTests {
|
||||
String sunsetUrl = "https://example.org/sunset";
|
||||
|
||||
ApiVersionParser<String> parser = version -> version;
|
||||
StandardApiDeprecationHandler handler = new StandardApiDeprecationHandler(parser);
|
||||
StandardApiVersionDeprecationHandler handler = new StandardApiVersionDeprecationHandler(parser);
|
||||
|
||||
handler.configureVersion("1.1")
|
||||
.setDeprecationDate(getDate("Fri, 30 Jun 2023 23:59:59 GMT"))
|
||||
Reference in New Issue
Block a user