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

Add test case for dependency exclusions in DependencyTest #1538

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

yuehcw
Copy link
Contributor

@yuehcw yuehcw commented May 28, 2024

Description

This pull request adds a new test case to the DependencyTest class to verify the correct functionality of exclusion handling within the Dependency class.

Changes

  • New Test Case:
    • testDependencyExclusions:
      • This test aims to verify that the addExclusion method in the Dependency class correctly adds exclusions.
      • It creates an Exclusion object and sets its groupId and artifactId.
      • The exclusion is added to the dependency using the dependency.addExclusion(exclusion) method.
      • The test verifies that the size of the exclusions list in the dependency is 1.
      • It checks that the groupId and artifactId of the added exclusion are correct.

Purpose

The purpose of this test case is to ensure that the exclusion handling functionality within the Dependency class works correctly. This is crucial for dependency management during the build process. With this test case, we can:

  1. Ensure the correct functionality of the exclusion handling in the Dependency class.
  2. Enhance the stability and reliability of the project code.
  3. Provide a safety net for future improvements and refactoring to prevent regression.

@hiufung-kwok
Copy link
Contributor

Please update the title to include the Jira ticket.

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.

2 participants