public class DatabaseContainerExtension extends Object implements org.junit.jupiter.api.extension.AfterEachCallback, org.junit.jupiter.api.extension.BeforeEachCallback
Extension
which provides a AttachToDatabaseExtension
instance with a pre-initialised MockComponentContainerExtension
.
Port of DatabaseContainer
Modifier and Type | Method and Description |
---|---|
void |
afterEach(org.junit.jupiter.api.extension.ExtensionContext context) |
void |
beforeEach(org.junit.jupiter.api.extension.ExtensionContext context) |
static DatabaseContainerExtension |
extension(Object test) |
AttachToDatabaseExtension |
getAttachToDatabase() |
MockComponentContainerExtension |
getMockitoContainer() |
static DatabaseContainerExtension |
withContainer(MockComponentContainerExtension mockitoContainer) |
public static DatabaseContainerExtension extension(Object test)
public static DatabaseContainerExtension withContainer(MockComponentContainerExtension mockitoContainer)
public AttachToDatabaseExtension getAttachToDatabase()
public MockComponentContainerExtension getMockitoContainer()
public void afterEach(org.junit.jupiter.api.extension.ExtensionContext context) throws Exception
afterEach
in interface org.junit.jupiter.api.extension.AfterEachCallback
Exception
Copyright © 2002-2024 Atlassian. All Rights Reserved.