Skip to content

Instantly share code, notes, and snippets.

@vladdima94
Created October 18, 2020 07:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vladdima94/209ae37b16e7314639bc5624937847cf to your computer and use it in GitHub Desktop.
Save vladdima94/209ae37b16e7314639bc5624937847cf to your computer and use it in GitHub Desktop.
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