MRUnit has had new API support for a while now (see MAPREDUCE-800). The new Driver classes are in org.apache.hadoop.mrunit.mapreduce.
- Aaron On Tue, Dec 1, 2009 at 12:44 AM, Bernd Fondermann <[email protected]>wrote: > Hi, > > Unit testing a mapper with the old mapred API is easy. > > However, for the new mapreduce API, I struggle creating the Context > object in an easy and elegant way. > > How do I best mock the Context for the mapper, as MRUnit does not seem > to be ready to be used with the new API yet? > > Is there example code somewhere? > > Thanks, > > Bernd >
