Search in sources :

Example 6 with CreateFolderRemoteOperation

use of com.owncloud.android.lib.resources.files.CreateFolderRemoteOperation in project android by nextcloud.

the class FileDataStorageManagerIT method testSaveNewFile_NonExistingParent.

@Test(expected = IllegalArgumentException.class)
public void testSaveNewFile_NonExistingParent() {
    assertTrue(new CreateFolderRemoteOperation("/1/1/", true).execute(client).isSuccess());
    OCFile newFile = new OCFile("/1/1/1.txt");
    sut.saveNewFile(newFile);
}
Also used : CreateFolderRemoteOperation(com.owncloud.android.lib.resources.files.CreateFolderRemoteOperation) Test(org.junit.Test)

Aggregations

CreateFolderRemoteOperation (com.owncloud.android.lib.resources.files.CreateFolderRemoteOperation)6 Test (org.junit.Test)4 RemoteOperationResult (com.owncloud.android.lib.common.operations.RemoteOperationResult)2 ReadFolderRemoteOperation (com.owncloud.android.lib.resources.files.ReadFolderRemoteOperation)2 RemoteFile (com.owncloud.android.lib.resources.files.model.RemoteFile)2 RefreshFolderOperation (com.owncloud.android.operations.RefreshFolderOperation)2 File (java.io.File)2 Activity (android.app.Activity)1 ArbitraryDataProvider (com.owncloud.android.datamodel.ArbitraryDataProvider)1 DecryptedFolderMetadata (com.owncloud.android.datamodel.DecryptedFolderMetadata)1 EncryptedFolderMetadata (com.owncloud.android.datamodel.EncryptedFolderMetadata)1 OCFile (com.owncloud.android.datamodel.OCFile)1 ToggleEncryptionRemoteOperation (com.owncloud.android.lib.resources.e2ee.ToggleEncryptionRemoteOperation)1 ExistenceCheckRemoteOperation (com.owncloud.android.lib.resources.files.ExistenceCheckRemoteOperation)1 UploadFileRemoteOperation (com.owncloud.android.lib.resources.files.UploadFileRemoteOperation)1 CreateShareRemoteOperation (com.owncloud.android.lib.resources.shares.CreateShareRemoteOperation)1 FileDisplayActivity (com.owncloud.android.ui.activity.FileDisplayActivity)1 SearchEvent (com.owncloud.android.ui.events.SearchEvent)1