Uploaded image for project: 'SonarJava'
  1. SonarJava
  2. SONARJAVA-3348

False negative in S2698: support fail() from JUnit 5

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.4
    • Component/s: Rules

      Description

      fail() method without message is reported for JUnit 4 (org.junit.Assert.fail()) but not for JUnit 5 (org.junit.jupiter.api.Assertions.fail()).

       

      We should report an issue for both.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sebastian.hungerecker Sebastian Hungerecker
                Reporter:
                quentin.jaquier Quentin Jaquier
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: