mirror of
https://github.com/owncloud/android-library.git
synced 2026-08-22 05:43:02 +00:00
Fixed unit tests
This commit is contained in:
+2
-2
@@ -132,7 +132,7 @@ public class CreateShareTest extends RemoteTest {
|
|||||||
31);
|
31);
|
||||||
assertFalse(result.isSuccess());
|
assertFalse(result.isSuccess());
|
||||||
assertEquals(
|
assertEquals(
|
||||||
RemoteOperationResult.ResultCode.SHARE_WRONG_PARAMETER,
|
RemoteOperationResult.ResultCode.SHARE_FORBIDDEN,
|
||||||
result.getCode()
|
result.getCode()
|
||||||
);
|
);
|
||||||
assertTrue( // error message from server as part of the result
|
assertTrue( // error message from server as part of the result
|
||||||
@@ -189,7 +189,7 @@ public class CreateShareTest extends RemoteTest {
|
|||||||
31);
|
31);
|
||||||
assertFalse(result.isSuccess());
|
assertFalse(result.isSuccess());
|
||||||
assertEquals(
|
assertEquals(
|
||||||
RemoteOperationResult.ResultCode.SHARE_WRONG_PARAMETER,
|
RemoteOperationResult.ResultCode.SHARE_FORBIDDEN,
|
||||||
result.getCode()
|
result.getCode()
|
||||||
);
|
);
|
||||||
assertTrue( // error message from server as part of the result
|
assertTrue( // error message from server as part of the result
|
||||||
|
|||||||
Reference in New Issue
Block a user