C - Type of underlying container@Experimental public class DefaultContainerizedExternalSystem<C extends org.testcontainers.containers.GenericContainer<C>> extends Object implements TestResource
| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultContainerizedExternalSystem.Builder<C extends org.testcontainers.containers.GenericContainer<C>>
Builder for
DefaultContainerizedExternalSystem. |
| Modifier and Type | Method and Description |
|---|---|
static <C extends org.testcontainers.containers.GenericContainer<C>> |
builder()
Get a builder for
DefaultContainerizedExternalSystem. |
C |
getContainer() |
void |
startUp()
Start up the test resource.
|
void |
tearDown()
Tear down the test resource.
|
public static <C extends org.testcontainers.containers.GenericContainer<C>> DefaultContainerizedExternalSystem.Builder<C> builder()
DefaultContainerizedExternalSystem.C - Type of underlying containerpublic void startUp()
throws Exception
TestResourceThe implementation of this method should be idempotent.
startUp in interface TestResourceException - if anything wrong when starting the resourcepublic void tearDown()
throws Exception
TestResourceThe test resource should be able to tear down even without a startup (could be a no-op).
tearDown in interface TestResourceException - if anything wrong when tearing the resource downpublic C getContainer()
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.