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

[MPMD-412] Remove unused code and otherwise cleanup tests #178

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

Conversation

elharo
Copy link
Contributor

@elharo elharo commented Dec 14, 2024

This cleanup revealed bugs in tests including in testInvalidTargetJdk and PmdViolationCheckMojoTest where the tests were incorrectly configured so the wrong exceptions were thrown. That is, the tests were in fact failing but this was hidden by an overly broad catch clause.

@elharo elharo changed the title IN progress, do not review: Remove unused code and otherwise cleanuop tests Remove unused code and otherwise cleanup tests Dec 14, 2024
@elharo elharo marked this pull request as ready for review December 14, 2024 12:38
@elharo elharo requested a review from michael-o December 14, 2024 12:38
@elharo
Copy link
Contributor Author

elharo commented Dec 15, 2024

Test passes locally. Not sure why it's failing in CI:

Error: org.apache.maven.plugins.pmd.CpdViolationCheckMojoTest.testException -- Time elapsed: 0.126 s <<< FAILURE!
junit.framework.AssertionFailedError: MojoFailureException should be thrown.

@elharo
Copy link
Contributor Author

elharo commented Dec 15, 2024

Also, all tests do appear to be passing on some of the builds, just not all of them.

@elharo
Copy link
Contributor Author

elharo commented Dec 15, 2024

Possibly only failing on Windows? Need a windows system to test on

@elharo elharo changed the title Remove unused code and otherwise cleanup tests [MPMD-412] Remove unused code and otherwise cleanup tests Dec 16, 2024
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.

1 participant