We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07c5443 commit f2bbdabCopy full SHA for f2bbdab
1 file changed
library/src/androidTest/java/com/owncloud/android/FileIT.java
@@ -135,11 +135,11 @@ public void testShareViaLinkSharees() {
135
RemoteFile parentFolder = (RemoteFile) result.getData().get(0);
136
assertEquals("/", parentFolder.getRemotePath());
137
138
- for (int i = 1; i < result.getData().size(); i++) {
139
- if (result.getData().get(i) instanceof RemoteFile child) {
140
- if (path.equals(child.getRemotePath()) && child.getSharees() != null) {
141
- assertEquals(0, child.getSharees().length);
142
- }
+ for (Object item : result.getData()) {
+ if (item instanceof RemoteFile child &&
+ path.equals(child.getRemotePath()) &&
+ child.getSharees() != null) {
+ assertEquals(1, child.getSharees().length);
143
}
144
145
0 commit comments