Re: Is 'Final' for classes and methods a good feature or something that should be eliminated?



Michael Feathers <mfeathers@xxxxxxxxxxxxxxxx> wrote:
rmoldskr+usenet@xxxxxxxxx wrote:

It hampers _one_ particular testing technique, it doesn't make anything
untestable.


Which one technique are you thinking of?

On second thought I suppose there's actually two related techniques: To
create a light-weight proxy of the library object by subclassing and
overriding the library logic, and to "whiten the box" by subclassing and
adding instrumenting or monitoring code.

--
Leif Roar Moldskred

.



Relevant Pages