Niels Basjes 2013-04-20, 22:09
To write unit tests you could take a look at TestBuiltin.java which has a
tests for several UDFs -
Also, you can mock up input/ouput data using
On Sat, Apr 20, 2013 at 3:09 PM, Niels Basjes <[EMAIL PROTECTED]> wrote:
> I created an addition to the ua-parser project (
> https://github.com/tobie/ua-parser ) so that the methods for parsing a
> useragent can be called as a UDF from Pig.
> One of the things I'm a bit worried about is that I have no idea on how to
> create a junit test for this.
> So I would really appreciate it if someone from the pig community could
> have a look at it before I submit a pull request.
> Best regards / Met vriendelijke groeten,
> Niels Basjes
Niels Basjes 2013-04-20, 22:35