Barak Yaish 2013-01-17, 20:07
-Re: How to unit test mappers reading data from DistributedCache?
Not sure how to do it using MRUnit, but should be possible to do this using
a mocking framework like Mockito or EasyMock. In a mapper (or reducer),
you'd use the Context classes to get the DistributedCache files. By mocking
these to return what you want, you could potentially run a true unit test.
On Fri, Jan 18, 2013 at 1:37 AM, Barak Yaish <[EMAIL PROTECTED]> wrote:
> I've found MRUnit a very easy to unit test jobs, is it possible as well to
> test mappers reading data from DisributedCache? If yes, can you share an
> example how the test' setup() should look like?