@@ -189,24 +189,6 @@ public void shouldShowCorrectDialog_whenMissingPermissionsAndShowRationaleFromAc
189
189
assertThatHasExpectedRationale (dialog , RATIONALE );
190
190
}
191
191
192
- @ SuppressWarnings ("deprecation" )
193
- @ Test
194
- public void shouldShowCorrectDialogUsingDeprecated_whenMissingPermissionsAndShowRationaleFromActivity () {
195
- grantPermissions (ONE_PERM );
196
- showRationale (true , ALL_PERMS );
197
-
198
- EasyPermissions .requestPermissions (spyActivity , RATIONALE , android .R .string .ok ,
199
- android .R .string .cancel , TestActivity .REQUEST_CODE , ALL_PERMS );
200
-
201
- Fragment dialogFragment = spyActivity .getFragmentManager ()
202
- .findFragmentByTag (RationaleDialogFragment .TAG );
203
- assertThat (dialogFragment ).isInstanceOf (RationaleDialogFragment .class );
204
-
205
- Dialog dialog = ((RationaleDialogFragment ) dialogFragment ).getDialog ();
206
- assertThatHasExpectedButtonsAndRationale (dialog , RATIONALE ,
207
- android .R .string .ok , android .R .string .cancel );
208
- }
209
-
210
192
@ Test
211
193
public void shouldShowCorrectDialogUsingRequest_whenMissingPermissionsAndShowRationaleFromActivity () {
212
194
grantPermissions (ONE_PERM );
@@ -348,24 +330,6 @@ public void shouldShowCorrectDialog_whenMissingPermissionsAndShowRationaleFromSu
348
330
assertThatHasExpectedRationale (dialog , RATIONALE );
349
331
}
350
332
351
- @ SuppressWarnings ("deprecation" )
352
- @ Test
353
- public void shouldShowCorrectDialogUsingDeprecated_whenMissingPermissionsAndShowRationaleFromSupportActivity () {
354
- grantPermissions (ONE_PERM );
355
- showRationale (true , ALL_PERMS );
356
-
357
- EasyPermissions .requestPermissions (spySupportActivity , RATIONALE , android .R .string .ok ,
358
- android .R .string .cancel , TestSupportActivity .REQUEST_CODE , ALL_PERMS );
359
-
360
- android .support .v4 .app .Fragment dialogFragment = spySupportActivity .getSupportFragmentManager ()
361
- .findFragmentByTag (RationaleDialogFragmentCompat .TAG );
362
- assertThat (dialogFragment ).isInstanceOf (RationaleDialogFragmentCompat .class );
363
-
364
- Dialog dialog = ((RationaleDialogFragmentCompat ) dialogFragment ).getDialog ();
365
- assertThatHasExpectedButtonsAndRationale (dialog , RATIONALE ,
366
- android .R .string .ok , android .R .string .cancel );
367
- }
368
-
369
333
@ Test
370
334
public void shouldShowCorrectDialogUsingRequest_whenMissingPermissionsAndShowRationaleFromSupportActivity () {
371
335
grantPermissions (ONE_PERM );
@@ -494,24 +458,6 @@ public void shouldRequestPermissions_whenMissingPermissionsAndNotShowRationaleFr
494
458
.requestPermissions (ALL_PERMS , TestFragment .REQUEST_CODE );
495
459
}
496
460
497
- @ SuppressWarnings ("deprecation" )
498
- @ Test
499
- public void shouldShowCorrectDialogUsingDeprecated_whenMissingPermissionsAndShowRationaleFromFragment () {
500
- grantPermissions (ONE_PERM );
501
- showRationale (true , ALL_PERMS );
502
-
503
- EasyPermissions .requestPermissions (spyFragment , RATIONALE , android .R .string .ok ,
504
- android .R .string .cancel , TestFragment .REQUEST_CODE , ALL_PERMS );
505
-
506
- android .support .v4 .app .Fragment dialogFragment = spyFragment .getChildFragmentManager ()
507
- .findFragmentByTag (RationaleDialogFragmentCompat .TAG );
508
- assertThat (dialogFragment ).isInstanceOf (RationaleDialogFragmentCompat .class );
509
-
510
- Dialog dialog = ((RationaleDialogFragmentCompat ) dialogFragment ).getDialog ();
511
- assertThatHasExpectedButtonsAndRationale (dialog , RATIONALE ,
512
- android .R .string .ok , android .R .string .cancel );
513
- }
514
-
515
461
@ Test
516
462
public void shouldShowCorrectDialog_whenMissingPermissionsAndShowRationaleFromFragment () {
517
463
grantPermissions (ONE_PERM );
0 commit comments