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
Attachments
Issue Links
- blocks
-
HDFS-519 Create new tests for lease recovery
- Closed
- is cloned by
-
HADOOP-6423 Add unit tests framework (Mockito)
- Resolved
- is related to
-
MAPREDUCE-1050 Introduce a mock object testing framework
- Closed