Skip to content

Commit 0ad2888

Browse files
committed
- adds static method to method
1 parent bc5f706 commit 0ad2888

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/java/com/microsoft/graph/functional/OutlookTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)