Thanks Johan!... in the end I just did the refactor.
On Feb 11, 7:24 am, Johan Haleby <
johan.hal...@gmail.com> wrote:
> It's probably because BufferedReader is a java system class so you need to
> deal with it in a special
> way.<
http://code.google.com/p/powermock/wiki/MockSystem>
>
> How ever I would be really careful with mocking classes such as
> BufferedReader. I would rather write an integration test to verify the use
> case and then refactor your legacy code, step by step.
>
> Regards,
> /Johan
>