mirror of
https://github.com/owncloud/android-library.git
synced 2025-06-08 00:16:09 +00:00
Update tests with the proper constants
This commit is contained in:
parent
f3a2c05efa
commit
f389207713
@ -297,7 +297,7 @@ public class OwnCloudClientTest extends AndroidTestCase {
|
|||||||
client.setCredentials(OwnCloudCredentialsFactory.newBearerCredentials("user", "fakeToken"));
|
client.setCredentials(OwnCloudCredentialsFactory.newBearerCredentials("user", "fakeToken"));
|
||||||
Uri webdavUri = client.getWebdavUri();
|
Uri webdavUri = client.getWebdavUri();
|
||||||
assertTrue("WebDAV URI does not point to the right entry point",
|
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",
|
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()));
|
||||||
@ -306,7 +306,7 @@ public class OwnCloudClientTest extends AndroidTestCase {
|
|||||||
mUsername, mPassword));
|
mUsername, mPassword));
|
||||||
webdavUri = client.getWebdavUri();
|
webdavUri = client.getWebdavUri();
|
||||||
assertTrue("WebDAV URI does not point to the right entry point",
|
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;
|
PropFindMethod propfind = null;
|
||||||
try {
|
try {
|
||||||
propfind = new PropFindMethod(webdavUri + "/",
|
propfind = new PropFindMethod(webdavUri + "/",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user