Suppress warnings in tests
This commit is contained in:
parent
2afcf60566
commit
4207c4d757
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in New Issue