//tempest-testing-junit4/app.cash.tempest.testing/TestDynamoDb
TestDynamoDb¶
[jvm]\ class TestDynamoDb : ExternalResource, TestDynamoDbClient
This JUnit rule 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 |
---|---|
dynamoDb | [jvm] open override val dynamoDb: AmazonDynamoDB |
dynamoDbStreams | [jvm] open override val dynamoDbStreams: AmazonDynamoDBStreams |
tables | [jvm] open override val tables: List<TestTable> |
Functions¶
Name | Summary |
---|---|
addListener | [jvm] open override fun addListener(p0: Service.Listener, p1: Executor) |
apply | [jvm] open override fun apply(p0: Statement, p1: Description): Statement |
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) |
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>, mapperConfig: DynamoDBMapperConfig): DB open override fun <DB : LogicalDb> logicalDb(type: KClass<DB>, mapperConfig: DynamoDBMapperConfig): 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 |