mirror of
https://github.com/owncloud/android-library.git
synced 2025-06-09 08:56:22 +00:00
Fixed unit tests
This commit is contained in:
parent
90615fc4ab
commit
206c7abf10
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user