Assert.assertFalse("After upload, the database must store the etag of the syncedFileState. But here it is empty",sfs_fromDBAfterUpload.getLastETAG().isEmpty());
assertFalse("After upload, the database must store the etag of the syncedFileState. But here it is empty",sfs_fromDBAfterUpload.getLastETAG().isEmpty());
}
@@ -192,11 +192,10 @@ public class UploadFileOperationTest {
SyncedFileStatesyncedFileState=null;
//Test fails at the moment because of UploadFileOperation's constructor not checking for syncedFileState is null)
Assert.assertEquals("Expected result code was FORBIDDEN but got: "+result.getCode().name(),RemoteOperationResult.ResultCode.FORBIDDEN,result.getCode());
assertEquals("Expected result code was FORBIDDEN but got: "+result.getCode().name(),RemoteOperationResult.ResultCode.FORBIDDEN,result.getCode());
}
@@ -209,17 +208,17 @@ public class UploadFileOperationTest {
Assert.assertEquals("Expected result code was FORBIDDEN but got: "+result.getCode().name(),RemoteOperationResult.ResultCode.FORBIDDEN,result.getCode());