Polishing
See gh-28386
This commit is contained in:
@@ -37,13 +37,13 @@ public class HttpMethodArgumentResolverTests {
|
||||
|
||||
private final Service service = this.clientAdapter.createService(Service.class, new HttpMethodArgumentResolver());
|
||||
|
||||
|
||||
|
||||
@Test
|
||||
void shouldResolveRequestMethodFromArgument() {
|
||||
this.service.execute(HttpMethod.GET);
|
||||
assertThat(getActualMethod()).isEqualTo(HttpMethod.GET);
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
void shouldIgnoreArgumentsNotMatchingType() {
|
||||
this.service.execute("test");
|
||||
|
||||
@@ -19,7 +19,6 @@ package org.springframework.web.service.invoker;
|
||||
import java.util.Map;
|
||||
import java.util.Optional;
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import org.springframework.core.convert.support.DefaultConversionService;
|
||||
@@ -143,7 +142,6 @@ class PathVariableArgumentResolverTests {
|
||||
assertThat(getActualUriVariables().get(name)).isEqualTo(expectedValue);
|
||||
}
|
||||
|
||||
@NotNull
|
||||
private Map<String, String> getActualUriVariables() {
|
||||
return this.clientAdapter.getRequestDefinition().getUriVariables();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user