Support for RSocket composite metadata
Closes gh-22798
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user