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

Fix comparison of share type in the GetShareesTest

This commit is contained in:
Juan Carlos González Cabrero 2016-03-07 13:55:18 +01:00
parent b13e584ac3
commit 1e1d424ffb

View File

@ -134,7 +134,7 @@ public class GetShareesTest extends RemoteTest {
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.GROUP) { if (type == ShareType.GROUP.getValue()) {
groupCount++; groupCount++;
} else { } else {
userCount++; userCount++;
@ -158,7 +158,7 @@ public class GetShareesTest extends RemoteTest {
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.GROUP) { if (type == ShareType.GROUP.getValue()) {
groupCount++; groupCount++;
} else { } else {
userCount++; userCount++;