asciidoctor / asciidoctor-maven-plugin

A Maven plugin that uses Asciidoctor via JRuby to process AsciiDoc source files within the project.
http://asciidoctor.org
Apache License 2.0
317 stars 122 forks source link

(main) Handle mojos default value in tests #756

Closed abelsromero closed 7 months ago

abelsromero commented 7 months ago

What kind of change does this PR introduce? (check at least one)

What is the goal of this pull request?

Prevent regressions by ensuring unit tests take the @Parameter configuration when mocking Mojos. In fact, an issue in ZipMojo was found.

Are there any alternative ways to implement this?

It's mostly a refactor, so yes...The change also extracts logic from TestUtils to better re-use or even publish as an extra artifact for other maven plugin developers.

Are there any implications of this pull request? Anything a user must know?

no

Is it related to an existing issue?

- [x] Yes #609 - [ ] No *Finally, please add a corresponding entry to CHANGELOG.adoc*