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

Assignment 1, Unit Testing - Chen Kang #4454

Closed
wants to merge 1 commit into from

Conversation

chenkang02
Copy link

Addressed Issue (1 mark):
Previously, the authentication module had poor test coverage. To address this, unit tests were written to thoroughly test the authentication module of the project. Given its critical role, achieving near 100% test coverage for the authentication module was essential.

What You Have Reengineered (1.5 marks):
Unit tests were implemented for three classes: JaasAuthenticationProvider, ManagedUserLoginConfiguration, and ManagedUserLoginModule. These tests were created using JUnit 5, a widely used testing framework, and Mockito, a popular library for mocking dependencies and simulating runtime behavior. The test cases cover the full lifecycle of the login modules, including edge cases and exceptional scenarios, ensuring robust validation

Impact of Changes (1 mark):
The implemented changes significantly improved the test coverage of the login and authentication modules. By automating tests with the JUnit library, development cycle time has been reduced. These tests act as a safety net, preventing erroneous code from being deployed to production. Errors can now be detected and resolved early during the testing phase, minimizing the risk of system failures or bugs in the production environment. This ensures the stability and reliability of the authentication system throughout development and deployment.

@chenkang02 chenkang02 requested a review from a team as a code owner November 17, 2024 04:27
@chenkang02 chenkang02 closed this Nov 17, 2024
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.

1 participant