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

FP in S2699: when assertion calls originate from junit.framework.TestCase

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.4, 3.5
    • Fix Version/s: 3.6
    • Component/s: Rules
    • Labels:
      None

      Description

      False positive for the following case:

      import junit.framework.TestCase;
      import org.junit.Test;
      class Test extends TestCase {
        @Test
        public void test() {
          assertEquals(true, true);
        }
      }
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              massimo.paladin Massimo PALADIN
              Reporter:
              alexandre.gigleux Alexandre Gigleux
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: