|
36 | 36 | import org.robolectric.RobolectricTestRunner;
|
37 | 37 | import org.robolectric.annotation.Config;
|
38 | 38 |
|
| 39 | +import java.util.Collections; |
39 | 40 | import java.util.HashMap;
|
40 | 41 | import java.util.Map;
|
41 | 42 |
|
42 |
| -import edu.emory.mathcs.backport.java.util.Collections; |
43 |
| - |
44 | 43 | import static org.hamcrest.CoreMatchers.is;
|
45 | 44 | import static org.hamcrest.CoreMatchers.notNullValue;
|
46 | 45 | import static org.hamcrest.CoreMatchers.nullValue;
|
@@ -541,7 +540,7 @@ public void shouldCallOAuthAuthenticationWithCustomProvider() {
|
541 | 540 | verify(lockView, never()).showProgress(true);
|
542 | 541 | verify(customProvider).setParameters(mapCaptor.capture());
|
543 | 542 | verify(customProvider).start(eq(activity), any(AuthCallback.class), eq(REQ_CODE_PERMISSIONS), eq(REQ_CODE_CUSTOM_PROVIDER));
|
544 |
| - AuthResolver.setAuthHandlers(Collections.emptyList()); |
| 543 | + AuthResolver.setAuthHandlers(Collections.<AuthHandler>emptyList()); |
545 | 544 |
|
546 | 545 | Map<String, String> reqParams = mapCaptor.getValue();
|
547 | 546 | assertThat(reqParams, is(notNullValue()));
|
@@ -579,7 +578,7 @@ public void shouldCallOAuthAuthenticationWithCustomProviderAndAudience() {
|
579 | 578 | verify(lockView, never()).showProgress(true);
|
580 | 579 | verify(customProvider).setParameters(mapCaptor.capture());
|
581 | 580 | verify(customProvider).start(eq(activity), any(AuthCallback.class), eq(REQ_CODE_PERMISSIONS), eq(REQ_CODE_CUSTOM_PROVIDER));
|
582 |
| - AuthResolver.setAuthHandlers(Collections.emptyList()); |
| 581 | + AuthResolver.setAuthHandlers(Collections.<AuthHandler>emptyList()); |
583 | 582 |
|
584 | 583 | Map<String, String> reqParams = mapCaptor.getValue();
|
585 | 584 | assertThat(reqParams, is(notNullValue()));
|
@@ -616,7 +615,7 @@ public void shouldCallEnterpriseOAuthAuthenticationWithCustomProvider() {
|
616 | 615 | verify(lockView, never()).showProgress(true);
|
617 | 616 | verify(customProvider).setParameters(mapCaptor.capture());
|
618 | 617 | verify(customProvider).start(eq(activity), any(AuthCallback.class), eq(REQ_CODE_PERMISSIONS), eq(REQ_CODE_CUSTOM_PROVIDER));
|
619 |
| - AuthResolver.setAuthHandlers(Collections.emptyList()); |
| 618 | + AuthResolver.setAuthHandlers(Collections.<AuthHandler>emptyList()); |
620 | 619 |
|
621 | 620 | Map<String, String> reqParams = mapCaptor.getValue();
|
622 | 621 | assertThat(reqParams, is(notNullValue()));
|
@@ -705,7 +704,7 @@ public void shouldResumeOAuthAuthenticationWithCustomProviderOnActivityResult()
|
705 | 704 |
|
706 | 705 | verify(lockView).showProgress(false);
|
707 | 706 | verify(customProvider).authorize(REQ_CODE_CUSTOM_PROVIDER, Activity.RESULT_OK, intent);
|
708 |
| - AuthResolver.setAuthHandlers(Collections.emptyList()); |
| 707 | + AuthResolver.setAuthHandlers(Collections.<AuthHandler>emptyList()); |
709 | 708 | }
|
710 | 709 |
|
711 | 710 | @Test
|
@@ -739,7 +738,7 @@ public void shouldResumeOAuthAuthenticationWithCustomProviderOnNewIntent() {
|
739 | 738 |
|
740 | 739 | verify(lockView).showProgress(false);
|
741 | 740 | verify(customProvider).authorize(intent);
|
742 |
| - AuthResolver.setAuthHandlers(Collections.emptyList()); |
| 741 | + AuthResolver.setAuthHandlers(Collections.<AuthHandler>emptyList()); |
743 | 742 | }
|
744 | 743 |
|
745 | 744 | @Test
|
|
0 commit comments