Package io.zeebe.test.util
Class AutoCloseableRule
- java.lang.Object
-
- org.junit.rules.ExternalResource
-
- io.zeebe.test.util.AutoCloseableRule
-
- All Implemented Interfaces:
org.junit.rules.TestRule
public class AutoCloseableRule extends org.junit.rules.ExternalResourceSaves you someAftermethods by closingAutoCloseableimplementations after the test in LIFO fashion.- Author:
- Lindhauer
-
-
Constructor Summary
Constructors Constructor Description AutoCloseableRule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafter()voidmanage(AutoCloseable closeable)
-
-
-
Method Detail
-
manage
public void manage(AutoCloseable closeable)
-
after
public void after()
- Overrides:
afterin classorg.junit.rules.ExternalResource
-
-