-
Notifications
You must be signed in to change notification settings - Fork 6k
Add unit tests to oauth2-core #4298
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
What is the expected behavior when the following code is called: AuthorizationCodeTokenRequestAttributes
.withCode("code")
// .clientId(null)
.redirectUri("http://redirect.uri/")
.build(); Does it let the object be created without the clientId or should it fail with IllegalArgumentException? |
Thanks for the answer Joe. I was writing the tests for this and other classes and noticed the current behavior is not correct. |
@Launder Yes, the current behaviour is not correct hence the need for unit tests. Thanks for taking this on! FYI, our current naming scheme for test methods is as follows: methodNameWhen<Condition>Then<Expectation> You can see examples of this in the following test classes:
|
Summary
Unit tests need to be added to the
oauth2-core
module.The text was updated successfully, but these errors were encountered: