Polishing

See gh-28386
This commit is contained in:
rstoyanchev
2022-04-21 21:04:17 +00:00
parent 4bddbd30c4
commit bb44c0e13a
8 changed files with 11 additions and 13 deletions

View File

@@ -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");

View File

@@ -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();
}