Merge remote-tracking branch 'origin/1.5.x'

pull/7105/merge
Dave Syer 8 years ago
commit 5fa507a477

@ -200,7 +200,7 @@ public class OAuth2RestOperationsConfiguration {
static class ClientCredentialsCondition extends AnyNestedCondition {
public ClientCredentialsCondition() {
ClientCredentialsCondition() {
super(ConfigurationPhase.PARSE_CONFIGURATION);
}
@ -215,7 +215,7 @@ public class OAuth2RestOperationsConfiguration {
static class NotClientCredentialsCondition extends NoneNestedConditions {
public NotClientCredentialsCondition() {
NotClientCredentialsCondition() {
super(ConfigurationPhase.PARSE_CONFIGURATION);
}

@ -196,7 +196,7 @@ public class OAuth2AutoConfigurationTests {
"security.oauth2.client.clientId=client",
"security.oauth2.client.grantType=client_credentials");
this.context.refresh();
assertThat(context.getBean(OAuth2ClientContext.class).getAccessTokenRequest())
assertThat(this.context.getBean(OAuth2ClientContext.class).getAccessTokenRequest())
.isNotNull();
assertThat(countBeans(ClientCredentialsResourceDetails.class)).isEqualTo(1);
assertThat(countBeans(OAuth2ClientContext.class)).isEqualTo(1);
@ -212,7 +212,7 @@ public class OAuth2AutoConfigurationTests {
"security.oauth2.client.grantType=client_credentials");
this.context.refresh();
// Thr primary context is fine (not session scoped):
assertThat(context.getBean(OAuth2ClientContext.class).getAccessTokenRequest())
assertThat(this.context.getBean(OAuth2ClientContext.class).getAccessTokenRequest())
.isNotNull();
assertThat(countBeans(ClientCredentialsResourceDetails.class)).isEqualTo(1);
/*

Loading…
Cancel
Save