Description
Add unit tests for the create club functionality using JUnit 5 and Mockito. The current implementation lacks proper test coverage, which may lead to undetected bugs in club creation and validation logic.
Task
- Set up test configuration for JUnit 5
- Mock dependencies using Mockito
- Write unit tests for create club API/controller
- Test valid club creation scenarios
- Test invalid inputs (missing fields, duplicates, etc.)
- Verify authorization (only allowed users can create clubs)
- Test error handling and edge cases
- Ensure good test coverage
Description
Add unit tests for the create club functionality using JUnit 5 and Mockito. The current implementation lacks proper test coverage, which may lead to undetected bugs in club creation and validation logic.
Task