(!this.syncedState.isMediaType()||syncedState.getLastETAG().isEmpty())?null:syncedState.getLastETAG(),//If not null, This can cause error 412; that means remote file has change
eTag,//If not null, This can cause error 412; that means remote file has change
@@ -176,27 +166,6 @@ public class UploadFileOperationTest {
assertFalse("After upload, the database must store the etag of the syncedFileState. But here it is empty",sfs_fromDBAfterUpload.getLastETAG().isEmpty());
}
/**
* Try to upload a file with a null SyncedFileState instance
* Must return a "Forbidden" result code
*/
@Ignore("Ignored until UploadFileOperation has fixed the NPE")
@Test
publicvoidnullSyncedFileState_shouldFail(){
SyncedFileStatesyncedFileState=null;
//Test fails at the moment because of UploadFileOperation's constructor not checking for syncedFileState is null)