mirror of
https://github.com/owncloud/android-library.git
synced 2025-06-08 08:26:10 +00:00
Fix indentation errors
This commit is contained in:
parent
547f7116ac
commit
996660b88c
@ -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(
|
||||
|
@ -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++;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user