Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-669

Add unit tests framework (Mockito)

    XMLWordPrintableJSON

Details

    • Test
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.21.0, 0.22.0
    • 0.21.0
    • build
    • None
    • Reviewed

    Description

      Most HDFS tests are functional tests that test a feature end to end by running a mini cluster. We should add more tests like TestReplication that attempt to stress individual classes in isolation, ie by stubbing out dependencies without running a mini cluster. This allows for more fine-grain testing and making tests run much more quickly because they avoid the cost of cluster setup and teardown. If it makes sense to use another framework besides junit we should standardize with MAPREDUCE-1050.

      Attachments

        1. HDFS669.patch
          5 kB
          Eli Collins
        2. HDFS-669.patch
          4 kB
          Konstantin I Boudnik
        3. HDFS-669.patch
          8 kB
          Konstantin I Boudnik
        4. HDFS-669.patch
          9 kB
          Konstantin I Boudnik
        5. HDFS-669.patch
          8 kB
          Konstantin I Boudnik
        6. HDFS-669.patch
          8 kB
          Konstantin I Boudnik
        7. HDFS-669.patch
          8 kB
          Konstantin I Boudnik
        8. HDFS-669.patch
          8 kB
          Konstantin I Boudnik
        9. HDFS-669.sh
          0.1 kB
          Konstantin I Boudnik

        Issue Links

          Activity

            People

              cos Konstantin I Boudnik
              eli Eli Collins
              Votes:
              0 Vote for this issue
              Watchers:
              14 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: