Skip to content

Fix order-dependent assertions in TestTaxRatesClient integration test#38

Merged
xsalefter merged 3 commits into
java2xfrom
copilot/fix-ci-jdk-21-integration-postgresql
May 21, 2026
Merged

Fix order-dependent assertions in TestTaxRatesClient integration test#38
xsalefter merged 3 commits into
java2xfrom
copilot/fix-ci-jdk-21-integration-postgresql

Conversation

Copy link
Copy Markdown

Copilot AI commented May 20, 2026

  • Identify root cause: org.killbill.commons.utils.collect.MultiValueMap not found at OSGi runtime because killbill-utils is provided scope in killbill-base-plugin and not exported by the OSGi system bundle
  • Add killbill-utils dependency in avatax-plugin pom.xml so it gets embedded in the bundle
  • Set scope to runtime to fix Maven verify failures while still embedding in the OSGi bundle
  • Fix order-dependent test assertions in TestTaxRatesClient
  • Run parallel validation

The AvaTax API does not guarantee a specific ordering of tax rates
in the response. Sort rates by type and rate before asserting to
make the integration test resilient to ordering changes.

Agent-Logs-Url: https://github.com/killbill/killbill-avatax-plugin/sessions/7990deea-7aa0-49b7-b2a6-fe07995c269a

Co-authored-by: xsalefter <510438+xsalefter@users.noreply.github.com>
…eption for MultiValueMap

The PluginTaxCalculator parent class uses MultiValueMap from
killbill-utils, which is declared as provided scope in
killbill-base-plugin. Since the OSGi system bundle does not export
org.killbill.commons.utils.collect, the plugin bundle must embed
killbill-utils to resolve the class at runtime.

Agent-Logs-Url: https://github.com/killbill/killbill-avatax-plugin/sessions/7b07bbaf-6f35-4eec-8515-a697760195c4

Co-authored-by: xsalefter <510438+xsalefter@users.noreply.github.com>
The compile scope was causing verification failures. The runtime scope
still ensures the classes get embedded in the OSGi bundle (via
Embed-Dependency *;scope=compile|runtime;inline=true) while avoiding
compile-time conflicts.

Agent-Logs-Url: https://github.com/killbill/killbill-avatax-plugin/sessions/afd521cd-c93b-4bcf-a955-362f71546711

Co-authored-by: xsalefter <510438+xsalefter@users.noreply.github.com>
@xsalefter xsalefter marked this pull request as ready for review May 21, 2026 15:31
@xsalefter xsalefter merged commit ff1e606 into java2x May 21, 2026
10 checks passed
@xsalefter xsalefter deleted the copilot/fix-ci-jdk-21-integration-postgresql branch May 21, 2026 15:32
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