T - The GenericContainer that shall be managed.public class TestContainerExtension<T extends org.testcontainers.containers.GenericContainer<T>> extends Object implements CustomExtension
TestContainerExtension provides common functionality for TestContainer
implementations.| Constructor and Description |
|---|
TestContainerExtension(Supplier<T> testContainerCreator) |
| Modifier and Type | Method and Description |
|---|---|
void |
after(org.junit.jupiter.api.extension.ExtensionContext context) |
void |
before(org.junit.jupiter.api.extension.ExtensionContext context) |
T |
getTestContainer() |
public T getTestContainer()
public void after(org.junit.jupiter.api.extension.ExtensionContext context)
throws Exception
after in interface CustomExtensionExceptionpublic void before(org.junit.jupiter.api.extension.ExtensionContext context)
throws Exception
before in interface CustomExtensionExceptionCopyright © 2014–2025 The Apache Software Foundation. All rights reserved.