Skip to content

Commit 6033b19

Browse files
committed
Update testMultiplePojoRequestPart
1 parent 2dacbee commit 6033b19

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spring-cloud-openfeign-core/src/test/java/org/springframework/cloud/openfeign/valid/FeignClientTests.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -461,19 +461,19 @@ public void testSinglePojoRequestPart() {
461461
@Test
462462
public void testMultipleRequestParts() {
463463
MockMultipartFile file = new MockMultipartFile("file", "hello.bin", null,
464-
"hello".getBytes());
464+
"hello".getBytes());
465465
String response = this.multipartClient.multipart("abc", "123", file);
466466
assertThat(response).isEqualTo("abc123hello.bin");
467467
}
468468

469469
@Test
470470
public void testMultiplePojoRequestParts() {
471+
Hello pojo1 = new Hello(HELLO_WORLD_1);
472+
Hello pojo2 = new Hello(OI_TERRA_2);
471473
MockMultipartFile file = new MockMultipartFile("file", "hello.bin", null,
472474
"hello".getBytes());
473-
Hello pojo1 = new Hello("hello");
474-
Hello pojo2 = new Hello("hello");
475475
String response = this.multipartClient.multipartPojo(pojo1, pojo2, file);
476-
assertThat(response).isEqualTo("helloworld1helloworld2hello.bin");
476+
assertThat(response).isEqualTo("hello world 1oi terra 2hello.bin");
477477
}
478478

479479
@Test

0 commit comments

Comments
 (0)