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

Support same set of assertion for rules using common assertions

    Details

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

      Description

      Currently, every rule defines their own code to detect assertions, we should consider putting in common this code in `UnitTestUtils` to bring every rule at the same level when possible (detecting the same set of assertions).

      This results in the following improvements:

      • New support of AssertJ for:
      • New support of AssertJ, JUnit 3 and Fest-assert for:
        • S5776
        • S5777
        • S5778
        • S5779
        • S5783

      Note that other rules also need to detect assertions, but have specific needs preventing to put anything in common:

      • S2699: requires heuristics to not behave poorly
      • S2970
      • S3415
      • S2698: ticket to add support for AssertJ (SONARJAVA-3349)
      • S2701: ticket to add support for AssertJ (TODO)

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                quentin.jaquier Quentin Jaquier
                Reporter:
                quentin.jaquier Quentin Jaquier
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: