1
0
mirror of https://github.com/owncloud/android-library.git synced 2025-06-07 16:06:08 +00:00

Update tests with the proper constants

This commit is contained in:
davigonz 2017-09-01 11:31:13 +02:00
parent f3a2c05efa
commit f389207713

View File

@ -297,7 +297,7 @@ public class OwnCloudClientTest extends AndroidTestCase {
client.setCredentials(OwnCloudCredentialsFactory.newBearerCredentials("user", "fakeToken"));
Uri webdavUri = client.getWebdavUri();
assertTrue("WebDAV URI does not point to the right entry point",
webdavUri.getPath().endsWith(AccountUtils.WEBDAV_PATH_4_0));
webdavUri.getPath().endsWith(OwnCloudClient.WEBDAV_PATH_4_0));
assertTrue("WebDAV URI is not a subpath of base URI",
webdavUri.getAuthority().equals(mServerUri.getAuthority()) &&
webdavUri.getPath().startsWith(mServerUri.getPath()));
@ -306,7 +306,7 @@ public class OwnCloudClientTest extends AndroidTestCase {
mUsername, mPassword));
webdavUri = client.getWebdavUri();
assertTrue("WebDAV URI does not point to the right entry point",
webdavUri.getPath().endsWith(AccountUtils.WEBDAV_PATH_4_0));
webdavUri.getPath().endsWith(OwnCloudClient.WEBDAV_PATH_4_0));
PropFindMethod propfind = null;
try {
propfind = new PropFindMethod(webdavUri + "/",