diff --git a/pom.xml b/pom.xml
index 93fdd01..c668586 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
io.goobox
goobox-sync-storj
- 0.0.21
+ 0.0.22
jar
Goobox sync app for Storj
@@ -62,7 +62,7 @@
io.storj
libstorj-java
- 0.6.2
+ 0.7.2
net.harawata
diff --git a/src/test/java/io/goobox/sync/storj/mocks/StorjMock.java b/src/test/java/io/goobox/sync/storj/mocks/StorjMock.java
index 72dd85d..b43ba49 100644
--- a/src/test/java/io/goobox/sync/storj/mocks/StorjMock.java
+++ b/src/test/java/io/goobox/sync/storj/mocks/StorjMock.java
@@ -122,7 +122,7 @@ public void deleteFile(String bucketId, String fileId, DeleteFileCallback callba
}
@Mock
- public void downloadFile(Bucket bucket, File file, DownloadFileCallback callback) throws KeysNotFoundException {
+ public long downloadFile(Bucket bucket, File file, DownloadFileCallback callback) throws KeysNotFoundException {
if (FILE_1.equals(file)) {
filesMock.addFile(FileMock.FILE_1);
callback.onComplete(file.getId(), FileMock.FILE_1.getPath().toString());
@@ -135,10 +135,11 @@ public void downloadFile(Bucket bucket, File file, DownloadFileCallback callback
} else {
callback.onError(file.getId(), Storj.STORJ_BRIDGE_FILE_NOTFOUND_ERROR, "error downloading");
}
+ return 0;
}
@Mock
- public void uploadFile(Bucket bucket, String fileName, String localPath, UploadFileCallback callback)
+ public long uploadFile(Bucket bucket, String fileName, String localPath, UploadFileCallback callback)
throws KeysNotFoundException {
if (FileMock.FILE_1.getPath().toString().equals(localPath)) {
if (files.contains(FILE_1)) {
@@ -162,6 +163,7 @@ public void uploadFile(Bucket bucket, String fileName, String localPath, UploadF
} else {
callback.onError(localPath, Storj.ENOENT, "error uploading");
}
+ return 0;
}
public void modifyFile(File oldFile, File newFile) {