@Incubating public interface ScopedMock extends AutoCloseable
| 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.
|
boolean |
isClosed()
Checks if this mock is closed.
|
boolean isClosed()
true if this mock is closed.void close()
close in interface AutoCloseablevoid closeOnDemand()