assertEquals("Result value should be three", value.getValues().get(0), "three");
reader.close();
}
public void validateInput(Job job) throws IOException {
VerticaInputFormat input = new VerticaInputFormat();
List<InputSplit> splits = null;
Configuration conf = job.getConfiguration();
conf.setInt("mapreduce.job.maps", 1);
JobContext context = new JobContextImpl(conf, new JobID());
splits = input.getSplits(context);
assert splits.size() == 1;
conf.setInt("mapreduce.job.maps", 3);
splits = input.getSplits(context);
assert splits.size() == 3;
conf.setInt("mapreduce.job.maps", 10);
splits = input.getSplits(context);
assert splits.size() == 10;
}