File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/test/java/com/microsoft/graph/functional Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -183,7 +183,7 @@ private FileAttachment getFileAttachment() throws Exception{
183183 fileAttachment .name = "document.pdf" ;
184184 File pdfFile = new File ("src/test/resources/document.pdf" );
185185 InputStream fileStream = new FileInputStream (pdfFile );
186- fileAttachment .contentBytes = getByteArray (fileStream );
186+ fileAttachment .contentBytes = OutlookTests . getByteArray (fileStream );
187187 fileAttachment .oDataType = "#microsoft.graph.fileAttachment" ;
188188 fileAttachment .id ="54321" ;
189189 return fileAttachment ;
@@ -234,7 +234,7 @@ private Event getEvent() {
234234 return event ;
235235 }
236236
237- public byte [] getByteArray (InputStream in ) {
237+ public static byte [] getByteArray (InputStream in ) {
238238 try {
239239 ByteArrayOutputStream buffer = new ByteArrayOutputStream ();
240240 int nRead ;
You can’t perform that action at this time.
0 commit comments