Skip to content

Test/license handler coverage#3737

Open
avadhutmali wants to merge 2 commits intoeclipse-sw360:mainfrom
avadhutmali:test/license-handler-coverage
Open

Test/license handler coverage#3737
avadhutmali wants to merge 2 commits intoeclipse-sw360:mainfrom
avadhutmali:test/license-handler-coverage

Conversation

@avadhutmali
Copy link

Adds test coverage for updateWhitelist and addObligationsToLicense, which
had no tests before. Put the new tests in a separate file to keep
LicenseHandlerTest.java untouched. Also pulled out the shared setup code
into a base class so adding more tests later is easier.

Fixes #3736

No new dependencies.

Suggest Reviewer

How To Test?

New tests run through the normal CI pipeline. 4 test cases added:

  • testUpdateWhitelistWithValidData
  • testUpdateWhitelistWithEmptySet
  • testAddExistingObligationToLicense
  • testAddEmptyObligationSetToLicense

Checklist

Must:

  • All related issues are referenced in commit messages

@GMishx GMishx added needs code review needs general test This is general testing, meaning that there is no org specific issue to check for labels Feb 23, 2026
@GMishx
Copy link
Member

GMishx commented Feb 23, 2026

@avadhutmali please fix the CI pipeline and sign your ECA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs code review needs general test This is general testing, meaning that there is no org specific issue to check for

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing test coverage for LicenseHandler business logic methods

2 participants