Package org.apache.pulsar.tests
Class MockitoThreadLocalStateCleaner
- java.lang.Object
-
- org.apache.pulsar.tests.MockitoThreadLocalStateCleaner
-
public final class MockitoThreadLocalStateCleaner extends java.lang.ObjectCleanup Mockito's Thread Local state. This is needed when Mockito has been used in an invalid way. Mockito.reset method should be called at the end of a test in the same thread where the methods were mocked/stubbed.
-
-
Field Summary
Fields Modifier and Type Field Description static MockitoThreadLocalStateCleanerINSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcleanup()booleanisEnabled()
-
-
-
Field Detail
-
INSTANCE
public static final MockitoThreadLocalStateCleaner INSTANCE
-
-