Skip to content

Commit 048c6fa

Browse files
authored
Implement AutoCloseable for TestcontainersExtension$StoreAdapter (#10529)
Fixes #10525
1 parent e36c9e7 commit 048c6fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/junit-jupiter/src/main/java/org/testcontainers/junit/jupiter/TestcontainersExtension.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ private static StoreAdapter getContainerInstance(final Object testInstance, fina
260260
* thereby letting the JUnit automatically stop containers once the current
261261
* {@link ExtensionContext} is closed.
262262
*/
263-
private static class StoreAdapter implements CloseableResource {
263+
private static class StoreAdapter implements CloseableResource, AutoCloseable {
264264

265265
@Getter
266266
private String key;

0 commit comments

Comments
 (0)