![JAR search and dependency download from the Maven repository](/logo.png)
com.tdder.junit.jupiter.extension.TeardownRegistry Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of junit-teardown-extension Show documentation
Show all versions of junit-teardown-extension Show documentation
JUnit Jupiter extension. Provides Automated Teardown mechanism.
The newest version!
package com.tdder.junit.jupiter.extension;
/**
* Teardown object registry.
*
* TeardownRegistry instance is injected into a field or parameter by {@link TeardownExtension}
*
* @see TeardownExtension
* @author manhole
*/
public interface TeardownRegistry {
/**
* Register teardown object.
*
*
* Registered teardown objects are execute after test executed.
*
*
* - If used on instance field or parameter, executed after {@link org.junit.jupiter.api.AfterEach}
* - If used on static field or parameter, executed after {@link org.junit.jupiter.api.AfterAll}
*
*
* @param {@code AutoCloseable}
* @param closeable teardown object
* @return closeable itself
*/
T add(T closeable);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy