Skip to content

//tempest2-testing-junit5/app.cash.tempest2.testing/TestDynamoDb

TestDynamoDb

[jvm]\ class TestDynamoDb : TestDynamoDbClient, BeforeEachCallback, AfterEachCallback

This JUnit extension spins up a DynamoDB server in tests. It shares the server across tests and keeps the server running until the process exits.

Types

Name Summary
Builder [jvm]
class Builder(serverFactory: TestDynamoDbServer.Factory<*>)

Properties

Name Summary
asyncDynamoDb [jvm]
open override val asyncDynamoDb: DynamoDbAsyncClient
asyncDynamoDbStreams [jvm]
open override val asyncDynamoDbStreams: DynamoDbStreamsAsyncClient
dynamoDb [jvm]
open override val dynamoDb: DynamoDbClient
dynamoDbStreams [jvm]
open override val dynamoDbStreams: DynamoDbStreamsClient
tables [jvm]
open override val tables: List<TestTable>

Functions

Name Summary
addListener [jvm]
open override fun addListener(p0: Service.Listener, p1: Executor)
afterEach [jvm]
open override fun afterEach(context: ExtensionContext?)
asyncLogicalDb [jvm]
open override fun <DB : AsyncLogicalDb> asyncLogicalDb(type: Class<DB>): DB
open override fun <DB : AsyncLogicalDb> asyncLogicalDb(type: KClass<DB>): DB
open override fun <DB : AsyncLogicalDb> asyncLogicalDb(type: Class<DB>, vararg extensions: DynamoDbEnhancedClientExtension): DB
open override fun <DB : AsyncLogicalDb> asyncLogicalDb(type: Class<DB>, extensions: List<DynamoDbEnhancedClientExtension>): DB
open override fun <DB : AsyncLogicalDb> asyncLogicalDb(type: KClass<DB>, vararg extensions: DynamoDbEnhancedClientExtension): DB
open override fun <DB : AsyncLogicalDb> asyncLogicalDb(type: KClass<DB>, extensions: List<DynamoDbEnhancedClientExtension>): DB
open override fun <DB : AsyncLogicalDb> asyncLogicalDb(type: KClass<DB>, extensions: List<DynamoDbEnhancedClientExtension>, tableNameResolver: TableNameResolver?): DB
awaitRunning [jvm]
open override fun awaitRunning()
open fun awaitRunning(p0: Duration)
open override fun awaitRunning(p0: Long, p1: TimeUnit)
awaitTerminated [jvm]
open override fun awaitTerminated()
open fun awaitTerminated(p0: Duration)
open override fun awaitTerminated(p0: Long, p1: TimeUnit)
beforeEach [jvm]
open override fun beforeEach(context: ExtensionContext)
failureCause [jvm]
open override fun failureCause(): Throwable
isRunning [jvm]
open override fun isRunning(): Boolean
logicalDb [jvm]
open override fun <DB : LogicalDb> logicalDb(type: Class<DB>): DB
open override fun <DB : LogicalDb> logicalDb(type: KClass<DB>): DB
open override fun <DB : LogicalDb> logicalDb(type: Class<DB>, vararg extensions: DynamoDbEnhancedClientExtension): DB
open override fun <DB : LogicalDb> logicalDb(type: Class<DB>, extensions: List<DynamoDbEnhancedClientExtension>): DB
open override fun <DB : LogicalDb> logicalDb(type: KClass<DB>, vararg extensions: DynamoDbEnhancedClientExtension): DB
open override fun <DB : LogicalDb> logicalDb(type: KClass<DB>, extensions: List<DynamoDbEnhancedClientExtension>): DB
open override fun <DB : LogicalDb> logicalDb(type: KClass<DB>, extensions: List<DynamoDbEnhancedClientExtension>, tableNameResolver: TableNameResolver?): DB
reset [jvm]
open override fun reset()
startAsync [jvm]
@CanIgnoreReturnValue
open override fun startAsync(): Service
state [jvm]
open override fun state(): Service.State
stopAsync [jvm]
@CanIgnoreReturnValue
open override fun stopAsync(): Service