mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Suppress warnings in tests
This commit is contained in:
+1
@@ -120,6 +120,7 @@ public class HttpRequestValuesTests {
|
||||
.addRequestPart("entity", entity)
|
||||
.build();
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
MultiValueMap<String, HttpEntity<?>> map = (MultiValueMap<String, HttpEntity<?>>) requestValues.getBodyValue();
|
||||
assertThat(map).hasSize(2);
|
||||
assertThat(map.getFirst("form field").getBody()).isEqualTo("form value");
|
||||
|
||||
+1
@@ -65,6 +65,7 @@ public class RequestPartArgumentResolverTests {
|
||||
|
||||
Object body = this.client.getRequestValues().getBodyValue();
|
||||
assertThat(body).isNotNull().isInstanceOf(MultiValueMap.class);
|
||||
@SuppressWarnings("unchecked")
|
||||
MultiValueMap<String, HttpEntity<?>> map = (MultiValueMap<String, HttpEntity<?>>) body;
|
||||
|
||||
assertThat(map.getFirst("part1").getBody()).isEqualTo("part 1");
|
||||
|
||||
Reference in New Issue
Block a user