Ok, so I have found that calling execute() instead
of  executeReport(Locale.getDefault()) in my Unit Tests fixes the
Nullpointer and I am now able to run my tests.  However, I haven't found a
way to include the default skin if the report is run outside the site
lifecycle.  Anyone have any pointers on how to achieve this?

Thanks,
Ryan


On Sat, Mar 6, 2010 at 11:43 AM, Ryan Connolly <[email protected]> wrote:

> Hello,
>      I have been following along the process describing how to write a
> custom maven report plugin write your own report 
> plugin<http://docs.codehaus.org/display/MAVENUSER/Write+your+own+report+plugin>
>  but
> I am getting stuck at the point of testing my new plugin.  In my unit test I
> am calling the executeReport(Locale.getDefault()); method but am running
> into a NPE when getSink() is called.  Does anyone know of any docs outlining
> how to test a custom reporting plugin?
>
> Thanks,
> -Ryan
>



-- 
�...@n

Reply via email to