mirror of
				https://github.com/owncloud/android-library.git
				synced 2025-10-28 17:07:49 +00:00 
			
		
		
		
	OC-2738: Create unitTests in the library: unshare a item.
This commit is contained in:
		
							parent
							
								
									aed2206804
								
							
						
					
					
						commit
						0f06f2f7fd
					
				| @ -24,9 +24,9 @@ | ||||
|  --> | ||||
|   | ||||
| <resources> | ||||
|     <string name="server_base_url">https://daily.owncloud.com/master/owncloud</string>				<!-- the server url, without webdav path --> | ||||
|     <string name="server_base_url"></string>				<!-- the server url, without webdav path --> | ||||
|     <string name="webdav_path">/remote.php/webdav</string> 	<!-- default value for webdav path (owncloud version > = 4)--> | ||||
|     <string name="username">maria</string> | ||||
|     <string name="password">maria</string> | ||||
|     <string name="username"></string> | ||||
|     <string name="password"></string> | ||||
|     <bool name="chunked">true</bool> | ||||
| </resources> | ||||
|  | ||||
| @ -40,6 +40,7 @@ import com.owncloud.android.lib.operations.remote.ReadRemoteFolderOperation; | ||||
| import com.owncloud.android.lib.operations.remote.RemoveRemoteFileOperation; | ||||
| import com.owncloud.android.lib.operations.remote.RenameRemoteFileOperation; | ||||
| import com.owncloud.android.lib.operations.remote.UploadRemoteFileOperation; | ||||
| import com.owncloud.android.lib.operations.remote.RemoveRemoteShareOperation; | ||||
| import com.owncloud.android.lib.test_project.R; | ||||
| 
 | ||||
| import android.net.Uri; | ||||
| @ -232,4 +233,19 @@ public class TestActivity extends Activity { | ||||
| 		 | ||||
| 		return result; | ||||
| 	} | ||||
| 	 | ||||
| 	 | ||||
| 	/** | ||||
| 	 * Access to the library method to Remove Share | ||||
| 	 *  | ||||
| 	 * @param idShare	Share ID | ||||
| 	 */ | ||||
| 	 | ||||
| 	public RemoteOperationResult removeShare(int idShare) { | ||||
| 		RemoveRemoteShareOperation removeOperation = new RemoveRemoteShareOperation(idShare); | ||||
| 		RemoteOperationResult result = removeOperation.execute(mClient); | ||||
| 		 | ||||
| 		return result; | ||||
| 		 | ||||
| 	} | ||||
| } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user