Skip to content

Commit 6d885b3

Browse files
committed
add test part
1 parent 0c373fb commit 6d885b3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/intTest/java/com/box/sdk/BoxFileIT.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,9 @@ public void uploadAndDownloadFileSucceeds() throws IOException {
216216
byte[] downloadedFileContent = downloadStream.toByteArray();
217217

218218
assertThat(downloadedFileContent, is(equalTo(fileContent)));
219+
assertThat(folder, hasItem(Matchers.<BoxItem.Info>hasProperty("ID", equalTo(uploadedFile.getID()))));
220+
verify(mockUploadListener, atLeastOnce()).onProgressChanged(anyLong(), longThat(is(equalTo(fileSize))));
221+
verify(mockDownloadListener, atLeastOnce()).onProgressChanged(anyLong(), longThat(is(equalTo(fileSize))));
219222
} finally {
220223
deleteFile(uploadedFile);
221224
}

0 commit comments

Comments
 (0)