Fix failed tests in CPD reports that were hidden by overly broad catch clauses by elharo · Pull Request #192 · apache/maven-pmd-plugin (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Merged

elharo

merged 19 commits into

May 1, 2025

Conversation

@elharo

@elharo

@elharo

@elharo elharo changed the titleFix failed tests in CPD reports that were hidden by overly braod catch clauses Fix failed tests in CPD reports that were hidden by overly broad catch clauses

Apr 20, 2025

Bukama

} catch (final Exception e) {
assertTrue(e.getMessage()
.startsWith("CPD " + AbstractPmdReport.getPmdVersion() + " has found 1 duplication."));
} catch (final MojoFailureException e) {

Choose a reason for hiding this comment

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

@elharo elharo marked this pull request as ready for review

April 23, 2025 16:24

elharo

Choose a reason for hiding this comment

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

PTAL. Finally figured out got all the tests passing across the matrix

Bukama

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})

Labels

2 participants

@elharo @Bukama