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

S2698: support AssertJ assertions without message

    Details

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

      Description

      We currently support org.fest.assertions.Assertions for rule S2698, but not org.assertj.core.api.Assertions.

      Since AssertJ is a fork of Fest and there are very few breaking changes, the improvement should be straightforward.
       

      Messages are set using org.assertj.core.api.AbstractAssert:
        as(String description, Object... args)
        as(Description description)
        describedAs(String description, Object... args)
        describedAs(Description description)
        withFailMessage(...)
        overridingErrorMessage(...)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                johann.beleites Johann Beleites
                Reporter:
                quentin.jaquier Quentin Jaquier
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: