[undertow-dev] HttpServerExchange

Greg Hellings greg.hellings at gmail.com
Sat Oct 17 10:34:47 EDT 2015


Ping.

--Greg
On Oct 8, 2015 11:41 AM, "Greg Hellings" <greg.hellings at gmail.com> wrote:

> I'm trying to mock out the HttpServerExchange object in my tests, but
> I apparently cannot do so because the class is declared final. Why is
> it final? Does that give Undertow anything beneficial?
>
> If there's good reason to not remove the final, I can just wrap the
> object in a proxy class that's not final, but I'd rather not do that
> just to get around limitations in mocking. Another alternative would
> be for me to skip unit tests on the handler methods and leverage
> integration tests.But there are sometimes bits of logic in the handler
> that I want to Unit Test directly.
>
> Any help would be appreciated.
>
> --Greg
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/undertow-dev/attachments/20151017/7de12c0f/attachment.html 


More information about the undertow-dev mailing list