Skip to content

Tests for the Create Club #12

Description

@VibhuSahu

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Fields

    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions