Uploaded image for project: 'Hadoop Map/Reduce'
  1. Hadoop Map/Reduce
  2. MAPREDUCE-7093

Use assertEquals instead of assertTrue(a == b) in TestMapReduceJobControlWithMocks

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 3.2.0
    • test
    • Reviewed

    Description

      For example:

          assertTrue(job1.getJobState() == ControlledJob.State.SUCCESS);
      

      should be

          assertEquals(ControlledJob.State.SUCCESS, job1.getJobState());
      

      Attachments

        1. MAPREDUCE-7093.001.patch
          3 kB
          Abhishek Modi

        Activity

          People

            abmodi Abhishek Modi
            aajisaka Akira Ajisaka
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: