Skip to content

Commit 04394a6

Browse files
committed
Update Formatting
Issue gh-14178
1 parent 6df9ef5 commit 04394a6

File tree

2 files changed

+8
-11
lines changed

2 files changed

+8
-11
lines changed

oauth2/oauth2-client/src/test/java/org/springframework/security/oauth2/client/oidc/authentication/OidcIdTokenDecoderFactoryTests.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public void setClaimTypeConverterFactoryWhenNullThenThrowIllegalArgumentExceptio
100100
@Test
101101
public void setRestOperationsFactoryWhenNullThenThrowIllegalArgumentException() {
102102
assertThatIllegalArgumentException()
103-
.isThrownBy(() -> this.idTokenDecoderFactory.setRestOperationsFactory(null));
103+
.isThrownBy(() -> this.idTokenDecoderFactory.setRestOperationsFactory(null));
104104
}
105105

106106
@Test
@@ -187,13 +187,12 @@ public void createDecoderWhenCustomClaimTypeConverterFactorySetThenApplied() {
187187

188188
@Test
189189
public void createDecoderWhenCustomRestOperationsFactorySetThenApplied() {
190-
Function<ClientRegistration, RestOperations> customRestOperationsFactory = mock(
191-
Function.class);
190+
Function<ClientRegistration, RestOperations> customRestOperationsFactory = mock(Function.class);
192191
this.idTokenDecoderFactory.setRestOperationsFactory(customRestOperationsFactory);
193192
ClientRegistration clientRegistration = this.registration.build();
194-
given(customRestOperationsFactory.apply(same(clientRegistration)))
195-
.willReturn(new RestTemplate());
193+
given(customRestOperationsFactory.apply(same(clientRegistration))).willReturn(new RestTemplate());
196194
this.idTokenDecoderFactory.createDecoder(clientRegistration);
197195
verify(customRestOperationsFactory).apply(same(clientRegistration));
198196
}
197+
199198
}

oauth2/oauth2-client/src/test/java/org/springframework/security/oauth2/client/oidc/authentication/ReactiveOidcIdTokenDecoderFactoryTests.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,7 @@ public void setClaimTypeConverterFactoryWhenNullThenThrowIllegalArgumentExceptio
9797

9898
@Test
9999
public void setWebClientFactoryWhenNullThenThrowIllegalArgumentException() {
100-
assertThatIllegalArgumentException()
101-
.isThrownBy(() -> this.idTokenDecoderFactory.setWebClientFactory(null));
100+
assertThatIllegalArgumentException().isThrownBy(() -> this.idTokenDecoderFactory.setWebClientFactory(null));
102101
}
103102

104103
@Test
@@ -185,13 +184,12 @@ public void createDecoderWhenCustomClaimTypeConverterFactorySetThenApplied() {
185184

186185
@Test
187186
public void createDecoderWhenCustomWebClientFactorySetThenApplied() {
188-
Function<ClientRegistration, WebClient> customWebClientFactory = mock(
189-
Function.class);
187+
Function<ClientRegistration, WebClient> customWebClientFactory = mock(Function.class);
190188
this.idTokenDecoderFactory.setWebClientFactory(customWebClientFactory);
191189
ClientRegistration clientRegistration = this.registration.build();
192-
given(customWebClientFactory.apply(same(clientRegistration)))
193-
.willReturn(WebClient.create());
190+
given(customWebClientFactory.apply(same(clientRegistration))).willReturn(WebClient.create());
194191
this.idTokenDecoderFactory.createDecoder(clientRegistration);
195192
verify(customWebClientFactory).apply(same(clientRegistration));
196193
}
194+
197195
}

0 commit comments

Comments
 (0)