File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
src/test/java/com/microsoft/graph/functional Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 11package com .microsoft .graph .functional ;
22
3- import static org .junit .Assert .assertTrue ;
3+ import static org .junit .Assert .assertFalse ;
44
55import java .io .IOException ;
66import java .io .InputStream ;
@@ -82,7 +82,6 @@ public void failure(final ClientException ex) {
8282 public void testDownloadWithCustomRequest () throws IOException {
8383 final String testDownloadFileId = "01RWFXFJG3UYRHE75RZVFYWKNUEBB53H7A" ;
8484 final InputStream stream = testBase .graphClient .customRequest ("/me/drive/items/" +testDownloadFileId +"/content" , InputStream .class ).buildRequest ().get ();
85- final byte [] bytes = stream .readAllBytes ();
86- assertTrue ("stream should not be empty" , bytes .length > 0 );
85+ assertFalse ("stream should not be empty" , stream .read () == -1 );
8786 }
8887}
You can’t perform that action at this time.
0 commit comments