Skip to content

Commit

Permalink
fix() : fix case error
Browse files Browse the repository at this point in the history
  • Loading branch information
fanlobu committed Aug 14, 2024
1 parent 099831d commit 3f25a1f
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,15 +179,14 @@ public void testMapParam() throws Exception {
public void testMapForm() throws Exception {
MultiValueMap<String, String> map = new LinkedMultiValueMap<>();
map.add("arg1","Hello");
map.add("arg2","world");
ResponseEntity<List<String>> response = RestClient.create().post()
.uri("http://" + providerAddress +":50052/complex/testMapForm")
.contentType(MediaType.APPLICATION_FORM_URLENCODED)
.body(map)
.retrieve()
.toEntity(new ParameterizedTypeReference<List<String>>() {
});
Assert.assertEquals(List.of("Hello","world"),response.getBody());
Assert.assertEquals(List.of("Hello"),response.getBody());
}

@Test
Expand Down

0 comments on commit 3f25a1f

Please sign in to comment.