@Before public void setUp() throws IOException { jobConfig = new Configuration(); mockJobContext = EasyMock.createMock(JobContext.class); EasyMock.expect(mockJobContext.getConfiguration()).andReturn(jobConfig).anyTimes(); EasyMock.replay(mockJobContext); ioPeon = new HadoopIOPeon( mockJobContext, new Path(tmpFolder.newFile().getParent()), overwritesFiles); }
@Override public JobConf getJobConf(org.apache.hadoop.mapred.JobContext context) { return context.getJobConf(); }