mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-17 16:39:29 +00:00
Polishing
This commit is contained in:
+1
-2
@@ -16,12 +16,11 @@
|
||||
|
||||
package org.springframework.web.accept;
|
||||
|
||||
|
||||
import jakarta.servlet.http.HttpServletRequest;
|
||||
import org.jspecify.annotations.Nullable;
|
||||
|
||||
/**
|
||||
* {@link ApiVersionResolver} that extract the version from a header.
|
||||
* {@link ApiVersionResolver} that extracts the version from a header.
|
||||
*
|
||||
* @author Rossen Stoyanchev
|
||||
* @since 7.0
|
||||
|
||||
+2
-2
@@ -16,7 +16,6 @@
|
||||
|
||||
package org.springframework.web.accept;
|
||||
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import org.springframework.web.testfixture.servlet.MockHttpServletRequest;
|
||||
@@ -25,9 +24,10 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
/**
|
||||
* Unit tests for {@link HeaderApiVersionResolver}.
|
||||
*
|
||||
* @author Rossen Stoyanchev
|
||||
*/
|
||||
public class HeaderApiVersionResolverTests {
|
||||
class HeaderApiVersionResolverTests {
|
||||
|
||||
private final String headerName = "Api-Version";
|
||||
|
||||
|
||||
+1
-1
@@ -21,7 +21,7 @@ import org.jspecify.annotations.Nullable;
|
||||
import org.springframework.web.server.ServerWebExchange;
|
||||
|
||||
/**
|
||||
* {@link ApiVersionResolver} that extract the version from a request header.
|
||||
* {@link ApiVersionResolver} that extracts the version from a request header.
|
||||
*
|
||||
* @author Rossen Stoyanchev
|
||||
* @since 7.0
|
||||
|
||||
+1
-1
@@ -21,7 +21,7 @@ import org.jspecify.annotations.Nullable;
|
||||
import org.springframework.web.server.ServerWebExchange;
|
||||
|
||||
/**
|
||||
* {@link ApiVersionResolver} that extract the version from a query parameter.
|
||||
* {@link ApiVersionResolver} that extracts the version from a query parameter.
|
||||
*
|
||||
* @author Rossen Stoyanchev
|
||||
* @since 7.0
|
||||
|
||||
+2
-2
@@ -16,7 +16,6 @@
|
||||
|
||||
package org.springframework.web.reactive.accept;
|
||||
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import org.springframework.web.server.ServerWebExchange;
|
||||
@@ -27,9 +26,10 @@ import static org.springframework.web.testfixture.http.server.reactive.MockServe
|
||||
|
||||
/**
|
||||
* Unit tests for {@link HeaderApiVersionResolver}.
|
||||
*
|
||||
* @author Rossen Stoyanchev
|
||||
*/
|
||||
public class HeaderApiVersionResolverTests {
|
||||
class HeaderApiVersionResolverTests {
|
||||
|
||||
private final String headerName = "Api-Version";
|
||||
|
||||
|
||||
+2
-2
@@ -16,7 +16,6 @@
|
||||
|
||||
package org.springframework.web.reactive.accept;
|
||||
|
||||
|
||||
import org.jspecify.annotations.Nullable;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
@@ -28,9 +27,10 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
/**
|
||||
* Unit tests for {@link QueryApiVersionResolver}.
|
||||
*
|
||||
* @author Rossen Stoyanchev
|
||||
*/
|
||||
public class QueryApiVersionResolverTests {
|
||||
class QueryApiVersionResolverTests {
|
||||
|
||||
private final String queryParamName = "api-version";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user