Interface AutoCloseableResource
-
- All Superinterfaces:
AutoCloseable,ExtensionContext.Store.CloseableResource
- All Known Implementing Classes:
AutoCloseableResource.Wrapper
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface AutoCloseableResource extends AutoCloseable, ExtensionContext.Store.CloseableResource
An interface that extends bothAutoCloseableandExtensionContext.Store.CloseableResource, allowing implementations to be used withExtensionContext.Storewith JUnit 5.13 but also before.- Author:
- Rob Spoor
- Since:
- 3.1
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classAutoCloseableResource.Wrapper<T>A wrapper that allows any object type to be used asAutoCloseableand/orExtensionContext.Store.CloseableResource.
-
Method Summary
-
Methods inherited from interface java.lang.AutoCloseable
close
-
Methods inherited from interface org.junit.jupiter.api.extension.ExtensionContext.Store.CloseableResource
close
-
-