From 1e1d424ffbb741aefb6161c72860c5da5bcc456a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Carlos=20Gonz=C3=A1lez=20Cabrero?= Date: Mon, 7 Mar 2016 13:55:18 +0100 Subject: [PATCH] Fix comparison of share type in the GetShareesTest --- .../android/lib/test_project/test/GetShareesTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test_client/tests/src/com/owncloud/android/lib/test_project/test/GetShareesTest.java b/test_client/tests/src/com/owncloud/android/lib/test_project/test/GetShareesTest.java index 0713b7ea..6f334079 100644 --- a/test_client/tests/src/com/owncloud/android/lib/test_project/test/GetShareesTest.java +++ b/test_client/tests/src/com/owncloud/android/lib/test_project/test/GetShareesTest.java @@ -134,7 +134,7 @@ public class GetShareesTest extends RemoteTest { resultItem = (JSONObject) result.getData().get(i); value = resultItem.getJSONObject(GetRemoteShareesOperation.NODE_VALUE); type = value.getInt(GetRemoteShareesOperation.PROPERTY_SHARE_TYPE); - if (type == ShareType.GROUP) { + if (type == ShareType.GROUP.getValue()) { groupCount++; } else { userCount++; @@ -158,7 +158,7 @@ public class GetShareesTest extends RemoteTest { resultItem = (JSONObject) result.getData().get(i); value = resultItem.getJSONObject(GetRemoteShareesOperation.NODE_VALUE); type = value.getInt(GetRemoteShareesOperation.PROPERTY_SHARE_TYPE); - if (type == ShareType.GROUP) { + if (type == ShareType.GROUP.getValue()) { groupCount++; } else { userCount++;