Skip to content

Commit

Permalink
add test part
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszsocha2 committed Dec 10, 2024
1 parent 0c373fb commit 6d885b3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/intTest/java/com/box/sdk/BoxFileIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,9 @@ public void uploadAndDownloadFileSucceeds() throws IOException {
byte[] downloadedFileContent = downloadStream.toByteArray();

assertThat(downloadedFileContent, is(equalTo(fileContent)));
assertThat(folder, hasItem(Matchers.<BoxItem.Info>hasProperty("ID", equalTo(uploadedFile.getID()))));
verify(mockUploadListener, atLeastOnce()).onProgressChanged(anyLong(), longThat(is(equalTo(fileSize))));
verify(mockDownloadListener, atLeastOnce()).onProgressChanged(anyLong(), longThat(is(equalTo(fileSize))));
} finally {
deleteFile(uploadedFile);
}
Expand Down

0 comments on commit 6d885b3

Please sign in to comment.