Support for RSocket composite metadata

Closes gh-22798
This commit is contained in:
Rossen Stoyanchev
2019-06-12 15:30:07 -04:00
parent 9fb973d4f3
commit 14e2c6803e
9 changed files with 352 additions and 112 deletions

View File

@@ -36,6 +36,15 @@ import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException
*/
public class ContentDispositionTests {
@Test
public void parseTest() {
ContentDisposition disposition = ContentDisposition
.parse("form-data; name=\"foo\"; filename=\"foo.txt\"; size=123");
assertThat(disposition).isEqualTo(ContentDisposition.builder("form-data")
.name("foo").filename("foo.txt").size(123L).build());
}
@Test
public void parse() {
ContentDisposition disposition = ContentDisposition