Fix test, satisfy spotbugs

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
tobiasKaminsky 2022-02-15 14:52:55 +01:00
parent 3584b90bc6
commit ea863cd04c
No known key found for this signature in database
GPG key ID: 0E00D4D47D0C5AF7
2 changed files with 6 additions and 6 deletions

View file

@ -64,7 +64,7 @@ public class ConflictsResolveActivityIT extends AbstractIT {
newFile.setModificationTimestamp(1522019340);
newFile.setStoragePath(FileStorageUtils.getSavePath(user.getAccountName()) + "/nonEmpty.txt");
OCFile existingFile = new OCFile("/newFile.txt");
OCFile existingFile = new OCFile("/newFile.txt", "4546546");
existingFile.setFileLength(1024000);
existingFile.setModificationTimestamp(1582019340);
@ -157,7 +157,7 @@ public class ConflictsResolveActivityIT extends AbstractIT {
"/newFile.txt",
user.getAccountName());
OCFile existingFile = new OCFile("/newFile.txt");
OCFile existingFile = new OCFile("/newFile.txt", "123221");
existingFile.setFileLength(1024000);
existingFile.setModificationTimestamp(1582019340);
@ -198,7 +198,7 @@ public class ConflictsResolveActivityIT extends AbstractIT {
"/newFile.txt",
user.getAccountName());
OCFile existingFile = new OCFile("/newFile.txt");
OCFile existingFile = new OCFile("/newFile.txt", "121312");
existingFile.setFileLength(1024000);
existingFile.setModificationTimestamp(1582019340);
@ -243,7 +243,7 @@ public class ConflictsResolveActivityIT extends AbstractIT {
"/newFile.txt",
user.getAccountName());
OCFile existingFile = new OCFile("/newFile.txt");
OCFile existingFile = new OCFile("/newFile.txt", "12354455");
existingFile.setFileLength(1024000);
existingFile.setModificationTimestamp(1582019340);
existingFile.setRemoteId("123abc");
@ -289,7 +289,7 @@ public class ConflictsResolveActivityIT extends AbstractIT {
"/newFile.txt",
user.getAccountName());
OCFile existingFile = new OCFile("/newFile.txt");
OCFile existingFile = new OCFile("/newFile.txt", "564564");
existingFile.setFileLength(1024000);
existingFile.setModificationTimestamp(1582019340);

View file

@ -176,7 +176,7 @@ public class GallerySearchTask extends AsyncTask<Void, Void, GallerySearchTask.R
Log_OC.d(this, "Gallery search result:" +
" new: " + filesToAdd.size() +
" updated: " + filesToUpdate.size() +
" deleted: " + localFilesMap.values().size());
" deleted: " + localFilesMap.size());
return didNotFindNewResults(filesToAdd, filesToUpdate, localFilesMap.values());
}