users@jersey.java.net

[Jersey] jersey-client - Why final methods in ClientFilter???

From: <viper2843_at_gmail.com>
Date: Fri, 20 Jul 2012 13:57:17 +0000 (GMT)

I have been using Jersey client to connect to a REST API. Everything
was going great until I started to write my unit tests. I can't unit
test my client filters because the abstract class ClientFilter has some
methods that are final: specifically getNext() and setNext(). I can't
mock final methods so I can't finish my test of these classes. Is there
any particular reason why these methods are marked as final? Thanks.