[jax-rs-spec users] Re: Why is "Entity" class final

From: Marek Potociar <>
Date: Thu, 20 Aug 2015 20:30:48 +0200

The entity is final so that people don’t stub it and we are safe to add new methods to it in the future.

What makes you want to stub the Entity class in your tests? Why don’t you just create an instance that you need?


> On 20 Aug 2015, at 18:30, wrote:
> Newbie here... What is the rationale of making
> "final"?
> I ask because it's hard to stub reasonably, which making overall unit
> testing hard.