mirror of
				https://github.com/owncloud/android-library.git
				synced 2025-10-28 00:48:50 +00:00 
			
		
		
		
	Fixed MoveFileTest.java
This commit is contained in:
		
							parent
							
								
									d4af8a6a33
								
							
						
					
					
						commit
						dc26392647
					
				| @ -24,9 +24,7 @@ | ||||
|  --> | ||||
|   | ||||
| <resources> | ||||
|     <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="server_base_url"></string> | ||||
|     <string name="username"></string> | ||||
|     <string name="password"></string> | ||||
|     <bool name="chunked">true</bool> | ||||
| </resources> | ||||
|  | ||||
| @ -95,27 +95,27 @@ public class MoveFileTest extends AndroidTestCase { | ||||
| 	  protected void setUp() throws Exception { | ||||
| 	    super.setUp(); | ||||
| 	     | ||||
| 		mServerUri = getContext().getString(R.string.server_base_url); | ||||
| 		mUser = getContext().getString(R.string.username); | ||||
| 		mPass = getContext().getString(R.string.password); | ||||
| 		 | ||||
| 		mClient = new OwnCloudClient( | ||||
| 				Uri.parse(mServerUri),  | ||||
| 				NetworkUtils.getMultiThreadedConnManager() | ||||
| 		); | ||||
| 		mClient.setDefaultTimeouts( | ||||
| 				OwnCloudClientFactory.DEFAULT_DATA_TIMEOUT,  | ||||
| 				OwnCloudClientFactory.DEFAULT_CONNECTION_TIMEOUT); | ||||
| 		mClient.setFollowRedirects(true); | ||||
| 		mClient.setCredentials( | ||||
| 				OwnCloudCredentialsFactory.newBasicCredentials( | ||||
| 						mUser,  | ||||
| 						mPass | ||||
| 				) | ||||
| 		); | ||||
|      | ||||
| 	    if (!mGlobalSetupDone) { | ||||
| 	    	 | ||||
| 			mServerUri = getContext().getString(R.string.server_base_url); | ||||
| 			mUser = getContext().getString(R.string.username); | ||||
| 			mPass = getContext().getString(R.string.password); | ||||
| 			 | ||||
| 			mClient = new OwnCloudClient( | ||||
| 					Uri.parse(mServerUri),  | ||||
| 					NetworkUtils.getMultiThreadedConnManager() | ||||
| 			); | ||||
| 			mClient.setDefaultTimeouts( | ||||
| 					OwnCloudClientFactory.DEFAULT_DATA_TIMEOUT,  | ||||
| 					OwnCloudClientFactory.DEFAULT_CONNECTION_TIMEOUT); | ||||
| 			mClient.setFollowRedirects(true); | ||||
| 			mClient.setCredentials( | ||||
| 					OwnCloudCredentialsFactory.newBasicCredentials( | ||||
| 							mUser,  | ||||
| 							mPass | ||||
| 					) | ||||
| 			); | ||||
| 	     | ||||
| 		    Log.v(LOG_TAG, "Starting global set up"); | ||||
| 		    RemoteOperationResult result =  | ||||
| 		    		TestActivity.createFolder(SRC_FOLDER_PATH, true, mClient); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user