PR #11906 - fix to MultiPartCaptureTest
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
parent
3dcf266cf8
commit
6661eea1ee
|
@ -60,6 +60,7 @@ public class MultiPartCaptureTest
|
|||
MultiPartFormData.Parser parser = new MultiPartFormData.Parser(boundary);
|
||||
parser.setUseFilesForPartsWithoutFileName(false);
|
||||
parser.setFilesDirectory(tempDir);
|
||||
parser.setUseFilesForPartsWithoutFileName(true);
|
||||
ByteBufferContentSource contentSource = new ByteBufferContentSource(formRequest.asByteBuffer());
|
||||
MultiPartFormData.Parts parts = parser.parse(contentSource).get();
|
||||
formExpectations.assertParts(mapActualResults(parts), defaultCharset);
|
||||
|
|
Loading…
Reference in New Issue