Skip to content

Move the clone, clone-java5 and snakeyaml ITs to unit tests - #654

Merged
slachiewicz merged 1 commit into
masterfrom
agent/modello-its-to-unit-tests
Nov 22, 2026
Merged

slachiewicz merged 1 commit into
masterfrom
agent/modello-its-to-unit-tests

Conversation

@slachiewicz

Copy link
Copy Markdown
Member

The clone ITs duplicated FeaturesJavaVerifier, which now compiles clone() without a cast, the covariant return the java5 IT guarded; the pluralExceptions parameter they used is covered in ModelloJavaMojoTest. The snakeyaml IT's test had no @Test and no JUnit dependency, so it never asserted anything; SnakeYamlGeneratorTest now checks the YAML output and reads it back.

maven-model stays an IT: it runs three goals in one execution on the 3000-line Maven model and compiles the result.

The clone checks duplicated FeaturesJavaVerifier, which now also compiles clone() without a cast
(the covariant return the java5 IT guarded). The pluralExceptions parameter the clone IT used is
covered in ModelloJavaMojoTest. The snakeyaml IT's test had no @test and no JUnit dependency, so it
never ran; SnakeYamlGeneratorTest now asserts the YAML output and reads it back.
@slachiewicz slachiewicz added the maintenance Cleanup, refactoring or other internal change label Nov 22, 2026
@slachiewicz
slachiewicz marked this pull request as ready for review November 22, 2026 19:37

@slachiewicz slachiewicz left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. All assertions from the three removed ITs survive in the unit tests, and the snakeyaml check now actually runs — the old RootTest had no @Test and no JUnit dependency. Optional: SnakeYamlVerifier.java has no copyright header, unlike the other plugin verifiers.

@slachiewicz
slachiewicz merged commit eed7256 into master Nov 22, 2026
11 checks passed
@slachiewicz
slachiewicz deleted the agent/modello-its-to-unit-tests branch November 22, 2026 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Cleanup, refactoring or other internal change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant