{"id":16632733,"url":"https://github.com/mkobit/junit5-dynamodb-local-extension","last_synced_at":"2025-07-23T02:04:31.740Z","repository":{"id":145769804,"uuid":"108344988","full_name":"mkobit/junit5-dynamodb-local-extension","owner":"mkobit","description":"JUnit Jupiter extensions to make use of DynamoDB Local in tests","archived":false,"fork":false,"pushed_at":"2019-06-28T19:37:06.000Z","size":165,"stargazers_count":5,"open_issues_count":5,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-09T13:11:38.372Z","etag":null,"topics":["aws","dynamodb","dynamodb-local","extension","junit","junit5"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mkobit.png","metadata":{"files":{"readme":"README.adoc","changelog":"CHANGELOG.adoc","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-10-26T01:15:51.000Z","updated_at":"2022-01-17T15:36:43.000Z","dependencies_parsed_at":"2023-04-28T12:13:53.011Z","dependency_job_id":null,"html_url":"https://github.com/mkobit/junit5-dynamodb-local-extension","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/mkobit/junit5-dynamodb-local-extension","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkobit%2Fjunit5-dynamodb-local-extension","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkobit%2Fjunit5-dynamodb-local-extension/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkobit%2Fjunit5-dynamodb-local-extension/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkobit%2Fjunit5-dynamodb-local-extension/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mkobit","download_url":"https://codeload.github.com/mkobit/junit5-dynamodb-local-extension/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkobit%2Fjunit5-dynamodb-local-extension/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266604009,"owners_count":23954725,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","dynamodb","dynamodb-local","extension","junit","junit5"],"created_at":"2024-10-12T05:10:03.831Z","updated_at":"2025-07-23T02:04:31.719Z","avatar_url":"https://github.com/mkobit.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"= JUnit Jupiter DynamoDB Local Extension\n:toc:\n:github-repo-id: junit5-dynamodb-local-extension\n:uri-github-releases: https://github.com/mkobit/{github-repo-id}/releases\n:uri-dynamo-db-developer-guide: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocal.html\n:uri-build-status-image: https://circleci.com/gh/mkobit/{github-repo-id}/tree/master.svg?style=svg\n:circle-ci-status-badge: image:{uri-build-status-image}[\"CircleCI\", link=\"https://circleci.com/gh/mkobit/{github-repo-id}/tree/master\"]\n:uri-version-badge-image: https://api.bintray.com/packages/mkobit/junit/{github-repo-id}/images/download.svg\n:uri-bintray-package: https://bintray.com/mkobit/junit/{github-repo-id}/_latestVersion\n:version-badge: image:{uri-version-badge-image}[\"Latest Release Version\", link=\"{uri-bintray-package}\"]\n\n{version-badge}\n{circle-ci-status-badge}\n\nNOTE: This documentation is for the `HEAD` of the repository.\n      To see documentation at a specific version see the link:{uri-github-releases}[GitHub Releases page]\n\n== Setup\n\n.Add as a dependency\n[source, kotlin, subs=attributes+]\n----\nrepositories {\n  jcenter()\n  // You will also need a repository to retrieve the DynamoDB Local transitive dependencies.\n  // These are listed on {uri-dynamo-db-developer-guide}\n  maven {\n    description = \"Repository from US West 2 - https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocal.html\"\n    name = \"dynamodb-local-oregon\"\n    url = uri(\"https://s3-us-west-2.amazonaws.com/dynamodb-local/release\")\n  }\n}\n\ndependencies {\n  testImplementation(\"com.mkobit.junit.jupiter.aws:junit5-dynamodb-local-extension:x.x.x\")\n}\n----\n\n== Usage\n\n=== Using in tests\n\nNOTE: The extension modifies the `sqlite4java.library.path` JVM system property.\n      An explanation for why can be found on link:https://stackoverflow.com/questions/26901613/easier-dynamodb-local-testing[this Stack Overflow question and answers].\n\nThe extension will create a new embedded DynamoDB instance for each test.\nIt attempts to locate the native dependencies on the classpath, place them into a temporary directory, and then set a system property before creating the database for test injection.\n\nAnnotate your test class or methods with `@DynamoDBLocal` and have one of the supported types automatically injected for use in your test.\nIt will be torn down afterwards.\n\n.Example showing different types that can be injected.\n[source, java]\n----\nimport com.mkobit.junit.jupiter.aws.dynamodb.DynamoDBLocal;\n\nimport com.amazonaws.services.dynamodbv2.AmazonDynamoDB\nimport com.amazonaws.services.dynamodbv2.AmazonDynamoDBStreams\nimport com.amazonaws.services.dynamodbv2.local.shared.access.AmazonDynamoDBLocal\n\n@DynamoDBLocal\nclass MyDynamoDbTest {\n  @Test\n  void usingAmazonDynamoDBLocal(final AmazonDynamoDBLocal amazonDynamoDBLocal) {\n  }\n\n  @Test\n  void usingAmazonDynamoDB(final AmazonDynamoDB amazonDynamoDB) {\n  }\n\n  @Test\n  void usingAmazonDynamoDBStreams(final AmazonDynamoDBStreams amazonDynamoDBStreams) {\n  }\n}\n----\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmkobit%2Fjunit5-dynamodb-local-extension","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmkobit%2Fjunit5-dynamodb-local-extension","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmkobit%2Fjunit5-dynamodb-local-extension/lists"}