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:
rstoyanchev
2025-06-24 10:21:59 +01:00
parent 7606a929c9
commit 785aab8ad5
14 changed files with 47 additions and 47 deletions
@@ -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"))