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

Fix indentation errors

This commit is contained in:
Juan Carlos González Cabrero 2016-03-16 09:50:18 +01:00
parent 547f7116ac
commit 996660b88c
2 changed files with 18 additions and 18 deletions

View File

@ -259,22 +259,22 @@ public class CreateShareTest extends RemoteTest {
);
// remote server doesn't exist
result = mActivity.createShare(
mFullPath2FileToShare,
ShareType.FEDERATED,
"no_exist",
false,
"",
31);
assertFalse(result.isSuccess());
assertEquals(
RemoteOperationResult.ResultCode.SHARE_WRONG_PARAMETER,
result.getCode()
);
assertTrue( // error message from server as part of the result
result.getData().size() == 1 &&
result.getData().get(0) instanceof String
);
result = mActivity.createShare(
mFullPath2FileToShare,
ShareType.FEDERATED,
"no_exist",
false,
"",
31);
assertFalse(result.isSuccess());
assertEquals(
RemoteOperationResult.ResultCode.SHARE_WRONG_PARAMETER,
result.getCode()
);
assertTrue( // error message from server as part of the result
result.getData().size() == 1 &&
result.getData().get(0) instanceof String
);
// file doesn't exist
result = mActivity.createShare(

View File

@ -212,8 +212,8 @@ public class GetShareesTest extends RemoteTest {
try {
for (int i=0; i<result.getData().size(); i++) {
resultItem = (JSONObject) result.getData().get(i);
value = resultItem.getJSONObject(GetRemoteShareesOperation.NODE_VALUE);
type = value.getInt(GetRemoteShareesOperation.PROPERTY_SHARE_TYPE);
value = resultItem.getJSONObject(GetRemoteShareesOperation.NODE_VALUE);
type = value.getInt(GetRemoteShareesOperation.PROPERTY_SHARE_TYPE);
if (type == ShareType.FEDERATED.getValue()) {
fedCount++;
}