File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
spring-web/src/test/java/org/springframework/http/server/reactive Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -103,11 +103,12 @@ private void assertFooPart(Part part) {
103
103
assertEquals ("fooPart" , part .name ());
104
104
assertTrue (part instanceof FilePart );
105
105
assertEquals ("foo.txt" , ((FilePart ) part ).filename ());
106
- DataBuffer buffer = DataBufferUtils .join (part .content ()).block ();
107
- assertEquals (12 , buffer .readableByteCount ());
108
- byte [] byteContent = new byte [12 ];
109
- buffer .read (byteContent );
110
- assertEquals ("Lorem Ipsum." , new String (byteContent ));
106
+ DataBufferUtils .join (part .content ()).subscribe (buffer -> {
107
+ assertEquals (12 , buffer .readableByteCount ());
108
+ byte [] byteContent = new byte [12 ];
109
+ buffer .read (byteContent );
110
+ assertEquals ("Lorem Ipsum." , new String (byteContent ));
111
+ });
111
112
}
112
113
113
114
private void assertBarPart (Part part ) {
You can’t perform that action at this time.
0 commit comments