Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

Testcontainers Dynalite Module

Testcontainers module for Dynalite. Dynalite is a clone of DynamoDB, enabling local testing.

Usage example

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 normally

Why Dynalite for DynamoDB testing?

In 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.

Dependency information

Replace VERSION with the latest version available on Maven Central.

Maven

<dependency>
    <groupId>org.testcontainers</groupId>
    <artifactId>dynalite</artifactId>
    <version>VERSION</version>
</dependency>

Gradle

compile group: 'org.testcontainers', name: 'dynalite', version: 'VERSION'