}
public void testMismatchingCombiner() throws SecurityException,
NoSuchMethodException, NoSuchFieldException {
@SuppressWarnings("rawtypes")
GraphMapper<?, ?, ?, ?> mapper = new GraphMapper();
Configuration conf = new Configuration();
conf.setClass(GiraphJob.VERTEX_CLASS,
GeneratedVertexMatch.class,
BasicVertex.class);
conf.setClass(GiraphJob.VERTEX_INPUT_FORMAT_CLASS,
SimpleSuperstepVertexInputFormat.class,
VertexInputFormat.class);
conf.setClass(GiraphJob.VERTEX_COMBINER_CLASS,
GeneratedVertexMismatchCombiner.class,
VertexCombiner.class);
try {
mapper.determineClassTypes(conf);
throw new RuntimeException(
"testMismatchingCombiner: Should have caught an exception!");
} catch (IllegalArgumentException e) {
}
}