Description
In jdk7 tests methods in a class do not run in file order, but rather in random order. TestSleepJob hosts are not initialized and a NullPointerException is thrown unless testRandomLocation was run first.
This can be easily seen by running tests individually.
org.apache.hadoop.mapred.gridmix.TestSleepJob#testStressSubmit
org.apache.hadoop.mapred.gridmix.TestSleepJob#testReplaySubmit
org.apache.hadoop.mapred.gridmix.TestSleepJob#testSerialSubmit
org.apache.hadoop.mapred.gridmix.TestSleepJob#testMapTasksOnlySleepJobs
org.apache.hadoop.mapred.gridmix.TestSleepJob#testRandomLocation