Skip to content

Commit

Permalink
adapt to aggregateJavaDocs
Browse files Browse the repository at this point in the history
  • Loading branch information
ibrahimesseddyq committed Jun 24, 2023
1 parent 89d3b18 commit 5ebc85b
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@

import org.apiguardian.api.API;
import org.junit.jupiter.api.AutoCloseUtils;
import org.junit.jupiter.api.extension.AfterEachCallback;
import org.junit.jupiter.api.extension.ExtensionContext;

/**
* The {@code AutoCloseExtension} class is a JUnit 5 extension that automatically closes resources used in tests.
*
Expand All @@ -38,15 +35,20 @@
*/
@API(status = API.Status.EXPERIMENTAL, since = "5.9")
public class AutoCloseExtension implements AfterEachCallback {

/**
* Invoked after each test execution to close the annotated resources within the test instance.
*
* @throws Exception if an exception occurs during resource cleanup
* Creates a new instance of AutoCloseExtension.
*/
public AutoCloseExtension() {

}

/**
* Invoked after each test execution to close the annotated resources within the test instance.
*
* @param context the extension context for the current test execution
* @throws Exception if an exception occurs during resource cleanup
*/
@Override
public void afterEach(ExtensionContext context) throws Exception {
Object testInstance = context.getRequiredTestInstance();
Expand Down

0 comments on commit 5ebc85b

Please sign in to comment.