|
|
|
|
|
by xxs
588 days ago
|
|
>So now we cannot easily mock final classes in tests Mocking final classes is a blunder on its own. Most classes should be package private not public, so being final would have close to zero relevance. Personally I do not use mocking tools/frameworks at all. OTOH, there is very little benefit of having final classes performance wise. Java performs CHA (class hierarchy analysis), anyways. |
|