37
37
import com .owncloud .android .lib .resources .shares .OCShare ;
38
38
import com .owncloud .android .lib .resources .shares .ShareType ;
39
39
import com .owncloud .android .lib .resources .shares .ShareeUser ;
40
+ import com .owncloud .android .lib .resources .status .OwnCloudVersion ;
40
41
41
42
import org .junit .Test ;
42
43
@@ -162,6 +163,8 @@ public void testShareViaLinkSharees() {
162
163
163
164
@ Test
164
165
public void testShareToGroupSharees () {
166
+ onlyOnMin (OwnCloudVersion .nextcloud_17 );
167
+
165
168
// create & verify folder
166
169
String path = "/testFolder/" ;
167
170
assertTrue (new CreateFolderRemoteOperation (path , true ).execute (client ).isSuccess ());
@@ -171,7 +174,7 @@ public void testShareToGroupSharees() {
171
174
172
175
// share folder
173
176
assertTrue (new CreateShareRemoteOperation (path ,
174
- ShareType .GROUP ,
177
+ ShareType .GROUP ,
175
178
"users" ,
176
179
false ,
177
180
"" ,
@@ -197,6 +200,8 @@ public void testShareToGroupSharees() {
197
200
198
201
@ Test
199
202
public void testOneSharees () {
203
+ onlyOnMin (OwnCloudVersion .nextcloud_17 );
204
+
200
205
// create & verify folder
201
206
String path = "/testFolder/" ;
202
207
assertTrue (new CreateFolderRemoteOperation (path , true ).execute (client ).isSuccess ());
@@ -206,7 +211,7 @@ public void testOneSharees() {
206
211
207
212
// share folder
208
213
assertTrue (new CreateShareRemoteOperation (path ,
209
- ShareType .USER ,
214
+ ShareType .USER ,
210
215
"user1" ,
211
216
false ,
212
217
"" ,
@@ -232,6 +237,8 @@ public void testOneSharees() {
232
237
233
238
@ Test
234
239
public void testTwoShareesOnParent () {
240
+ onlyOnMin (OwnCloudVersion .nextcloud_17 );
241
+
235
242
// create & verify folder
236
243
String path = "/testFolder/" ;
237
244
assertTrue (new CreateFolderRemoteOperation (path , true ).execute (client ).isSuccess ());
@@ -280,6 +287,8 @@ public void testTwoShareesOnParent() {
280
287
281
288
@ Test
282
289
public void testTwoSharees () {
290
+ onlyOnMin (OwnCloudVersion .nextcloud_17 );
291
+
283
292
// create & verify folder
284
293
String path = "/testFolder/" ;
285
294
assertTrue (new CreateFolderRemoteOperation (path , true ).execute (client ).isSuccess ());
0 commit comments