Skip to content
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

test: authentication package unit tests #128

Merged
merged 4 commits into from
Dec 22, 2024

Conversation

OmarAlJarrah
Copy link
Contributor

@OmarAlJarrah OmarAlJarrah commented Dec 15, 2024

Situation

At the moment of creating this PR, we do not have unit-tests that cover all components in our new sdk-core. The goal of this PR is to add unit-tests that test all files in the com.expediagroup.sdk.core.authentication package.

Task

Add unit tests using Junit-5 and Mockk.

Action

Added new unit-tests for the following classes:

  • BearerAuthenticationInterceptor
  • BearerAuthenticationManager
  • BearerTokenStorageTest
  • TokenResponse
  • Credentials

Testing

NaN

Results

All files in the com.expediagroup.sdk.core.authentication package are now tested.

Notes

NaN

@OmarAlJarrah OmarAlJarrah requested a review from a team as a code owner December 15, 2024 11:31
@Mohammad-Dwairi Mohammad-Dwairi self-requested a review December 17, 2024 13:39
@mohnoor94 mohnoor94 merged commit 338369a into main Dec 22, 2024
1 check passed
@mohnoor94 mohnoor94 deleted the OmarAlJarrah/add-authentication-package-tests branch December 22, 2024 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants