Menu

#1373 [java] JUnitAssertionsShouldIncludeMessage: is no longer compatible with TestNG

PMD-5.3.6
closed
PMD
4-Minor
Bug
5.3.2
JUnit
2016-06-25
2015-06-16
Thrawn
No

The JUnit ruleset was previously compatible with TestNG, but became incompatible when version 5.3.0 changed the JUnitAssertionsShouldIncludeMessage rule to require a String as the first argument to assertEquals.

Is it feasible to adjust this to allow either the first or last argument to be a String?

Related

Issues: #1447

Discussion

  • Thrawn

    Thrawn - 2015-11-02

    This results in false positives on TestNG assertions. If TestNG is not supported, then it should be ignored entirely. However, it would be valuable to support it properly.

     
  • Andreas Dangel

    Andreas Dangel - 2015-11-30
    • status: open --> closed
    • assigned_to: Andreas Dangel
    • Milestone: New Tickets --> PMD-5.3.6
     
  • Andreas Dangel

    Andreas Dangel - 2016-06-25
    • labels: testng --> testng, java
    • summary: JUnitAssertionsShouldIncludeMessage is no longer compatible with TestNG --> [java] JUnitAssertionsShouldIncludeMessage: is no longer compatible with TestNG
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.