Package org.mockito.internal
Class MockedConstructionImpl<T>
java.lang.Object
org.mockito.internal.MockedConstructionImpl<T>
- All Implemented Interfaces:
AutoCloseable
,MockedConstruction<T>
,ScopedMock
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.mockito.MockedConstruction
MockedConstruction.Context, MockedConstruction.MockInitializer<T>
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
-
Method Summary
-
Constructor Details
-
MockedConstructionImpl
-
-
Method Details
-
constructed
Description copied from interface:MockedConstruction
Get the constructed mocks.- Specified by:
constructed
in interfaceMockedConstruction<T>
- Returns:
- the constructed mocks.
-
isClosed
public boolean isClosed()Description copied from interface:ScopedMock
Checks if this mock is closed.- Specified by:
isClosed
in interfaceScopedMock
- Returns:
true
if this mock is closed.
-
close
public void close()Description copied from interface:ScopedMock
Closes this scoped mock and throws an exception if already closed.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceScopedMock
-
closeOnDemand
public void closeOnDemand()Description copied from interface:ScopedMock
Releases this scoped mock and is non-operational if already released.- Specified by:
closeOnDemand
in interfaceScopedMock
-