Testcontainers module for Dynalite. Dynalite is a clone of DynamoDB, enabling local testing.
Running Dynalite as a stand-in for DynamoDB in a test:
public class SomeTest {
@Rule
public DynaliteContainer dynamoDB = new DynaliteContainer();
@Test
public void someTestMethod() {
// getClient() returns a preconfigured DynamoDB client that is connected to the
// dynalite container
final AmazonDynamoDB client = dynamoDB.getClient();
... interact with client as if using DynamoDB normallyIn part, because it's light and quick to run. Also, please see the reasons given by the author of Dynalite and the problems with Amazon's DynamoDB Local.
Replace VERSION with the latest version available on Maven Central.
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>dynalite</artifactId>
<version>VERSION</version>
</dependency>
compile group: 'org.testcontainers', name: 'dynalite', version: 'VERSION'