|
|
@ -155,6 +155,18 @@ public class MatrixVariablesMapMethodArgumentResolverTests { |
|
|
|
assertThat(map).isEqualTo(Collections.emptyMap()); |
|
|
|
assertThat(map).isEqualTo(Collections.emptyMap()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
|
|
|
public void resolveMultiValueMapArgumentNoParams() throws Exception { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
MethodParameter param = this.testMethod.annot(matrixAttribute().noPathVar()) |
|
|
|
|
|
|
|
.arg(MultiValueMap.class, String.class, String.class); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Object result = this.resolver.resolveArgument(param, this.mavContainer, this.webRequest, null); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//noinspection unchecked
|
|
|
|
|
|
|
|
assertThat(result).isInstanceOfSatisfying(MultiValueMap.class, map -> assertThat(map).isEmpty()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
@Test |
|
|
|
public void resolveArgumentNoMatch() throws Exception { |
|
|
|
public void resolveArgumentNoMatch() throws Exception { |
|
|
|
MultiValueMap<String, String> params2 = getVariablesFor("planes"); |
|
|
|
MultiValueMap<String, String> params2 = getVariablesFor("planes"); |
|
|
|