File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
server/src/test/java/org/cloudfoundry/identity/uaa/provider/oauth Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 8787import java .util .Map ;
8888import java .util .UUID ;
8989import java .util .concurrent .CountDownLatch ;
90- import java .util .stream .Collectors ;
9190import java .util .stream .Stream ;
9291
9392import static java .util .Collections .emptyList ;
@@ -579,7 +578,7 @@ void discoveryURL_is_used() throws MalformedURLException {
579578 mockToken ();
580579 addTheUserOnAuth ();
581580 externalOAuthAuthenticationManager .authenticate (xCodeToken );
582- verify (externalOAuthProviderConfigurator , atLeast (1 )).overlay (eq ( config ) );
581+ verify (externalOAuthProviderConfigurator , atLeast (1 )).overlay (config );
583582 mockUaaServer .verify ();
584583
585584 }
@@ -798,7 +797,7 @@ void null_key_config_invalid() throws Exception {
798797 externalOAuthAuthenticationManager .authenticate (xCodeToken );
799798 fail ("not expected" );
800799 } catch (Exception e ) {
801- assertThat (e instanceof IllegalArgumentException ). isTrue ( );
800+ assertThat (e ). isInstanceOf ( IllegalArgumentException . class );
802801 }
803802 }
804803
@@ -874,7 +873,7 @@ void updateShadowUser_IfAlreadyExists() {
874873
875874 ArgumentCaptor <ApplicationEvent > userArgumentCaptor = ArgumentCaptor .forClass (ApplicationEvent .class );
876875 verify (publisher , times (2 )).publishEvent (userArgumentCaptor .capture ());
877- assertThat (userArgumentCaptor .getAllValues (). size ()). isEqualTo (2 );
876+ assertThat (userArgumentCaptor .getAllValues ()). hasSize (2 );
878877 ExternalGroupAuthorizationEvent event = (ExternalGroupAuthorizationEvent ) userArgumentCaptor .getAllValues ().get (0 );
879878
880879 UaaUser uaaUser = event .getUser ();
You can’t perform that action at this time.
0 commit comments