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 // remote server doesn't exist
result = mActivity.createShare( result = mActivity.createShare(
mFullPath2FileToShare, mFullPath2FileToShare,
ShareType.FEDERATED, ShareType.FEDERATED,
"no_exist", "no_exist",
false, false,
"", "",
31); 31);
assertFalse(result.isSuccess()); assertFalse(result.isSuccess());
assertEquals( assertEquals(
RemoteOperationResult.ResultCode.SHARE_WRONG_PARAMETER, RemoteOperationResult.ResultCode.SHARE_WRONG_PARAMETER,
result.getCode() result.getCode()
); );
assertTrue( // error message from server as part of the result assertTrue( // error message from server as part of the result
result.getData().size() == 1 && result.getData().size() == 1 &&
result.getData().get(0) instanceof String result.getData().get(0) instanceof String
); );
// file doesn't exist // file doesn't exist
result = mActivity.createShare( result = mActivity.createShare(

View File

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