mirror of
				https://github.com/owncloud/android-library.git
				synced 2025-10-31 02:17:41 +00:00 
			
		
		
		
	Updated tests for OwnCloudClient after removing path constant ODAV_PATH
This commit is contained in:
		
							parent
							
								
									f42a9f8c61
								
							
						
					
					
						commit
						1f69348cc6
					
				| @ -296,9 +296,8 @@ public class OwnCloudClientTest extends AndroidTestCase { | |||||||
| 				new OwnCloudClient(mServerUri, NetworkUtils.getMultiThreadedConnManager()); | 				new OwnCloudClient(mServerUri, NetworkUtils.getMultiThreadedConnManager()); | ||||||
| 		client.setCredentials(OwnCloudCredentialsFactory.newBearerCredentials("fakeToken")); | 		client.setCredentials(OwnCloudCredentialsFactory.newBearerCredentials("fakeToken")); | ||||||
| 		Uri webdavUri = client.getWebdavUri(); | 		Uri webdavUri = client.getWebdavUri(); | ||||||
| 		assertTrue("WebDAV URI does not point to the right entry point for OAuth2 " + | 		assertTrue("WebDAV URI does not point to the right entry point", | ||||||
| 				"authenticated servers", | 				webdavUri.getPath().endsWith(AccountUtils.WEBDAV_PATH_4_0)); | ||||||
| 				webdavUri.getPath().endsWith(AccountUtils.ODAV_PATH)); |  | ||||||
| 		assertTrue("WebDAV URI is not a subpath of base URI",  | 		assertTrue("WebDAV URI is not a subpath of base URI",  | ||||||
| 				webdavUri.getAuthority().equals(mServerUri.getAuthority()) && | 				webdavUri.getAuthority().equals(mServerUri.getAuthority()) && | ||||||
| 				webdavUri.getPath().startsWith(mServerUri.getPath())); | 				webdavUri.getPath().startsWith(mServerUri.getPath())); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user