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(java.util.function.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 TestContainerExtension(java.util.function.Supplier<T> testContainerCreator)
public T getTestContainer()
public void after(org.junit.jupiter.api.extension.ExtensionContext context) throws Exception
after
in interface CustomExtension
Exception
public void before(org.junit.jupiter.api.extension.ExtensionContext context) throws Exception
before
in interface CustomExtension
Exception
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.