3737import com .owncloud .android .lib .resources .shares .OCShare ;
3838import com .owncloud .android .lib .resources .shares .ShareType ;
3939import com .owncloud .android .lib .resources .shares .ShareeUser ;
40+ import com .owncloud .android .lib .resources .status .OwnCloudVersion ;
4041
4142import org .junit .Test ;
4243
@@ -162,6 +163,8 @@ public void testShareViaLinkSharees() {
162163
163164 @ Test
164165 public void testShareToGroupSharees () {
166+ onlyOnMin (OwnCloudVersion .nextcloud_17 );
167+
165168 // create & verify folder
166169 String path = "/testFolder/" ;
167170 assertTrue (new CreateFolderRemoteOperation (path , true ).execute (client ).isSuccess ());
@@ -171,7 +174,7 @@ public void testShareToGroupSharees() {
171174
172175 // share folder
173176 assertTrue (new CreateShareRemoteOperation (path ,
174- ShareType .GROUP ,
177+ ShareType .GROUP ,
175178 "users" ,
176179 false ,
177180 "" ,
@@ -197,6 +200,8 @@ public void testShareToGroupSharees() {
197200
198201 @ Test
199202 public void testOneSharees () {
203+ onlyOnMin (OwnCloudVersion .nextcloud_17 );
204+
200205 // create & verify folder
201206 String path = "/testFolder/" ;
202207 assertTrue (new CreateFolderRemoteOperation (path , true ).execute (client ).isSuccess ());
@@ -206,7 +211,7 @@ public void testOneSharees() {
206211
207212 // share folder
208213 assertTrue (new CreateShareRemoteOperation (path ,
209- ShareType .USER ,
214+ ShareType .USER ,
210215 "user1" ,
211216 false ,
212217 "" ,
@@ -232,6 +237,8 @@ public void testOneSharees() {
232237
233238 @ Test
234239 public void testTwoShareesOnParent () {
240+ onlyOnMin (OwnCloudVersion .nextcloud_17 );
241+
235242 // create & verify folder
236243 String path = "/testFolder/" ;
237244 assertTrue (new CreateFolderRemoteOperation (path , true ).execute (client ).isSuccess ());
@@ -280,6 +287,8 @@ public void testTwoShareesOnParent() {
280287
281288 @ Test
282289 public void testTwoSharees () {
290+ onlyOnMin (OwnCloudVersion .nextcloud_17 );
291+
283292 // create & verify folder
284293 String path = "/testFolder/" ;
285294 assertTrue (new CreateFolderRemoteOperation (path , true ).execute (client ).isSuccess ());
0 commit comments