[Feature]: Add an annotation similar to @org.testcontainers.junit.jupiter.Container
to the org.testcontainers.containers.Network
class
#9552
Labels
Module
Core
Problem
org.testcontainers.containers.Network
mentioned in https://java.testcontainers.org/features/networking/ , it always needs to be closed manually by callingNetwork#close()
.org.testcontainers.containers.Network
in junit5 always requires adding an additional@AfterAll
. Like the following,Solution
org.junit.jupiter.api.AfterAll
as follows.@org.testcontainers.junit.jupiter.Container
could be added to theorg.testcontainers.containers.Network
class. Maybe the class name is@org.testcontainers.junit.jupiter.Network
.Benefit
Alternatives
Would you like to help contributing this feature?
No
The text was updated successfully, but these errors were encountered: