{"id":19777993,"url":"https://github.com/aleph0io/java-maven-testcontainers-sfn-example","last_synced_at":"2026-05-15T14:04:23.171Z","repository":{"id":251641276,"uuid":"838003553","full_name":"aleph0io/java-maven-testcontainers-sfn-example","owner":"aleph0io","description":"Simple example of using LocalStack via TestContainers to test a simple Step Function using Java and maven","archived":false,"fork":false,"pushed_at":"2024-08-04T18:20:13.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-11T01:57:18.800Z","etag":null,"topics":["java","localstack","localstack-cfn","localstack-sfn","maven","testcontainers","testcontainers-java","testcontainers-junit-5","testcontainers-junit-jupiter","testcontainers-localstack","testing"],"latest_commit_sha":null,"homepage":"https://github.com/aleph0io/java-maven-testcontainers-sfn-example","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aleph0io.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2024-08-04T17:02:25.000Z","updated_at":"2024-08-04T18:20:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"729b7163-3b23-4afd-8505-a532496e1000","html_url":"https://github.com/aleph0io/java-maven-testcontainers-sfn-example","commit_stats":null,"previous_names":["aleph0io/java-maven-testcontainers-sfn-example"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aleph0io%2Fjava-maven-testcontainers-sfn-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aleph0io%2Fjava-maven-testcontainers-sfn-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aleph0io%2Fjava-maven-testcontainers-sfn-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aleph0io%2Fjava-maven-testcontainers-sfn-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aleph0io","download_url":"https://codeload.github.com/aleph0io/java-maven-testcontainers-sfn-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241108168,"owners_count":19910978,"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","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":["java","localstack","localstack-cfn","localstack-sfn","maven","testcontainers","testcontainers-java","testcontainers-junit-5","testcontainers-junit-jupiter","testcontainers-localstack","testing"],"created_at":"2024-11-12T05:27:24.001Z","updated_at":"2026-05-15T14:04:23.092Z","avatar_url":"https://github.com/aleph0io.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# java-maven-testcontainers-sfn-example\n\nAn [SSCCE](http://www.sscce.org/) of using [LocalStack](https://www.localstack.cloud/) via [TestContainers](https://testcontainers.com/) to test a simple [AWS](https://aws.amazon.com/) [Step Function](https://aws.amazon.com/step-functions/) in a [Java](https://en.wikipedia.org/wiki/Java_%28programming_language%29) project with [maven](https://maven.apache.org/) build and [JUnit 5 Jupyter](https://junit.org/junit5/docs/current/user-guide/) test framework.\n\n## Building\n\nThe build is fully integrated with maven and may be run using simply:\n\n    mvn clean compile test verify\n\nThis will build the main code as well as run unit tests via [surefire](https://maven.apache.org/surefire/maven-surefire-plugin/) and integration tests via [failsafe](https://maven.apache.org/surefire/maven-failsafe-plugin/).\n\n## Reusing\n\nThe code is intended to be modular and reused. While I hope all the code is useful, I suspect the following code may be of particular interest:\n\n* [`src/main/java/io.aleph0.example.testcontainers.sfn.ActivityManager`](https://github.com/aleph0io/java-maven-testcontainers-sfn-example/blob/main/src/main/java/io/aleph0/example/testcontainers/sfn/ActivityManager.java) -- A `Runnable` that polls for [activity tasks](https://docs.aws.amazon.com/step-functions/latest/dg/concepts-activities.html). Runs in a standalone thread, either manually or via an `Executor`. Responds to thread interrupt.\n* [`src/main/java/io.aleph0.example.testcontainers.sfn.util.Exceptions`](https://github.com/aleph0io/java-maven-testcontainers-sfn-example/blob/main/src/main/java/io/aleph0/example/testcontainers/sfn/util/Exceptions.java) -- Captures an `Exception` stack trace as a `String` for use in activity task error messages.\n* [`src/it/java/io.aleph0.example.testcontainers.sfn.ExampleIT`](https://github.com/aleph0io/java-maven-testcontainers-sfn-example/blob/main/src/it/java/io/aleph0/example/testcontainers/sfn/ExampleIT.java) -- A self-contained integration test using TestContainers with the JUnit 5 Jupyter to create a CloudFormation stack, run the step function it creates, and then delete the CloudFormation stack.\n\nThe code is available under the Apache License v2.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faleph0io%2Fjava-maven-testcontainers-sfn-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faleph0io%2Fjava-maven-testcontainers-sfn-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faleph0io%2Fjava-maven-testcontainers-sfn-example/lists"}