Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
public class UserRepoDynamoDBTest {
// ...
@BeforeEach
public void beforeEachSetUp() {
ddbClient = new DynamoDBMapper(ddb);
DynamoDBLocalStarterTest.createTable(
ddb, USERS_TABLE_NAME, UserModel.HASH_KEY, "");
userDAO = new UserDAODynamoDB(ddbClient);
userDAO.createUser(UserMockData.USER_EXISTS);
}
@AfterEach
public void afterEachCleanUp() {
DynamoDBLocalStarterTest.deleteTable(ddb, USERS_TABLE_NAME);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.