Skip to content

Commit 5c531e0

Browse files
committed
Update test code due to code changes
Issue gh-15885
1 parent afb1cac commit 5c531e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

oauth2/oauth2-resource-server/src/test/java/org/springframework/security/oauth2/server/resource/web/server/authentication/ServerBearerTokenAuthenticationConverterTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,9 @@ public void resolveWhenQueryParameterIsEmptyAndSupportedThenOAuth2Authentication
187187
.isThrownBy(() -> convertToToken(request))
188188
.satisfies((ex) -> {
189189
BearerTokenError error = (BearerTokenError) ex.getError();
190-
assertThat(error.getErrorCode()).isEqualTo(BearerTokenErrorCodes.INVALID_TOKEN);
190+
assertThat(error.getErrorCode()).isEqualTo(BearerTokenErrorCodes.INVALID_REQUEST);
191191
assertThat(error.getUri()).isEqualTo("https://tools.ietf.org/html/rfc6750#section-3.1");
192-
assertThat(error.getHttpStatus()).isEqualTo(HttpStatus.UNAUTHORIZED);
192+
assertThat(error.getHttpStatus()).isEqualTo(HttpStatus.BAD_REQUEST);
193193
});
194194
// @formatter:on
195195
}

0 commit comments

Comments
 (0)