mirror of
				https://github.com/owncloud/android-library.git
				synced 2025-10-31 10:27:45 +00:00 
			
		
		
		
	Update comment, error handling and indentation in the automatic test
This commit is contained in:
		
							parent
							
								
									57aa370be0
								
							
						
					
					
						commit
						573afa1538
					
				| @ -136,7 +136,7 @@ public class UpdatePublicShareTest extends RemoteTest { | |||||||
| 	    if (result.isSuccess()){ | 	    if (result.isSuccess()){ | ||||||
| 	    	mShare = (OCShare) result.getData().get(0); | 	    	mShare = (OCShare) result.getData().get(0); | ||||||
| 	    } else{ | 	    } else{ | ||||||
| 	    	mShare = null; | 	    	Utils.logAndThrow(LOG_TAG, result); | ||||||
| 	    } | 	    } | ||||||
| 	     | 	     | ||||||
| 	    // Create the folder | 	    // Create the folder | ||||||
| @ -148,7 +148,7 @@ public class UpdatePublicShareTest extends RemoteTest { | |||||||
|  			Utils.logAndThrow(LOG_TAG, result); |  			Utils.logAndThrow(LOG_TAG, result); | ||||||
|  		} |  		} | ||||||
| 
 | 
 | ||||||
| 	 		// Share the folder privately with a group |  		// Share the folder publicly via link | ||||||
|  		result = getActivity().createShare( |  		result = getActivity().createShare( | ||||||
|  				mFullPath2FolderToShare, |  				mFullPath2FolderToShare, | ||||||
|  				ShareType.PUBLIC_LINK, |  				ShareType.PUBLIC_LINK, | ||||||
| @ -160,7 +160,7 @@ public class UpdatePublicShareTest extends RemoteTest { | |||||||
|  		if (result.isSuccess()){ |  		if (result.isSuccess()){ | ||||||
|  			mFolderShare = (OCShare) result.getData().get(0); |  			mFolderShare = (OCShare) result.getData().get(0); | ||||||
|  		} else{ |  		} else{ | ||||||
| 	 			mFolderShare = null; |  			Utils.logAndThrow(LOG_TAG, result); | ||||||
|  		} |  		} | ||||||
| 	     | 	     | ||||||
| 		Log.v(LOG_TAG, "Remote fixtures created."); | 		Log.v(LOG_TAG, "Remote fixtures created."); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user