public final class MockedConstructionImpl<T> extends Object implements MockedConstruction<T>
MockedConstruction.Context, MockedConstruction.MockInitializer<T>| Modifier | Constructor and Description |
|---|---|
protected |
MockedConstructionImpl(MockMaker.ConstructionMockControl<T> control) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this scoped mock and throws an exception if already closed.
|
void |
closeOnDemand()
Releases this scoped mock and is non-operational if already released.
|
List<T> |
constructed() |
boolean |
isClosed()
Checks if this mock is closed.
|
protected MockedConstructionImpl(MockMaker.ConstructionMockControl<T> control)
public List<T> constructed()
constructed in interface MockedConstruction<T>public boolean isClosed()
ScopedMockisClosed in interface ScopedMocktrue if this mock is closed.public void close()
ScopedMockclose in interface AutoCloseableclose in interface ScopedMockpublic void closeOnDemand()
ScopedMockcloseOnDemand in interface ScopedMockCopyright © 2025. All rights reserved.