1.

Why Does Mockito Keep Threadlocal State?

Answer»

Mockito uses ThreadLocal state to IMPLEMENT a GORGEOUS mocking syntax in a LANGUAGE full of constraints (yes, it's JAVA). Fortunately, every time you interact with Mockito framework it validates the ThreadLocal state in case you MISUSED the api.

Mockito uses ThreadLocal state to implement a gorgeous mocking syntax in a language full of constraints (yes, it's java). Fortunately, every time you interact with Mockito framework it validates the ThreadLocal state in case you misused the api.



Discussion

No Comment Found