Package org.mockito.internal
Class MockedStaticImpl<T>
java.lang.Object
org.mockito.internal.MockedStaticImpl<T>
- All Implemented Interfaces:
AutoCloseable,MockedStatic<T>,ScopedMock
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.mockito.MockedStatic
MockedStatic.Verification -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidclose()Closes this scoped mock and throws an exception if already closed.voidReleases this scoped mock and is non-operational if already released.booleanisClosed()Checks if this mock is closed.voidreset()toString()voidverify(MockedStatic.Verification verification, VerificationMode mode) voidvoid<S> OngoingStubbing<S> when(MockedStatic.Verification verification) SeeMockito.when(Object).Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.mockito.MockedStatic
verify
-
Constructor Details
-
MockedStaticImpl
-
-
Method Details
-
when
Description copied from interface:MockedStaticSeeMockito.when(Object).- Specified by:
whenin interfaceMockedStatic<T>
-
verify
Description copied from interface:MockedStatic- Specified by:
verifyin interfaceMockedStatic<T>
-
reset
public void reset()Description copied from interface:MockedStatic- Specified by:
resetin interfaceMockedStatic<T>
-
clearInvocations
public void clearInvocations()Description copied from interface:MockedStatic- Specified by:
clearInvocationsin interfaceMockedStatic<T>
-
verifyNoMoreInteractions
public void verifyNoMoreInteractions()Description copied from interface:MockedStatic- Specified by:
verifyNoMoreInteractionsin interfaceMockedStatic<T>
-
verifyNoInteractions
public void verifyNoInteractions()Description copied from interface:MockedStatic- Specified by:
verifyNoInteractionsin interfaceMockedStatic<T>
-
isClosed
public boolean isClosed()Description copied from interface:ScopedMockChecks if this mock is closed.- Specified by:
isClosedin interfaceScopedMock- Returns:
trueif this mock is closed.
-
close
public void close()Description copied from interface:ScopedMockCloses this scoped mock and throws an exception if already closed.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceScopedMock
-
closeOnDemand
public void closeOnDemand()Description copied from interface:ScopedMockReleases this scoped mock and is non-operational if already released.- Specified by:
closeOnDemandin interfaceScopedMock
-
toString
-