Package io.vertx.junit5
Class ScopedObject<T>
- java.lang.Object
-
- io.vertx.junit5.ScopedObject<T>
-
- Type Parameters:
T
- Parameter type
- All Implemented Interfaces:
java.util.function.Supplier<T>
,org.junit.jupiter.api.extension.ExtensionContext.Store.CloseableResource
public class ScopedObject<T> extends Object implements java.util.function.Supplier<T>, org.junit.jupiter.api.extension.ExtensionContext.Store.CloseableResource
A parameter as an object with a scope and that can be closed when the scope exits.This is useful for parameter providers.
- Author:
- Julien Ponge