{"id":25932757,"url":"https://github.com/cosium/synapse-junit-extension","last_synced_at":"2026-06-01T06:32:13.659Z","repository":{"id":177816530,"uuid":"660943406","full_name":"Cosium/synapse-junit-extension","owner":"Cosium","description":"JUnit extension allowing to run tests against a real Synapse instance","archived":false,"fork":false,"pushed_at":"2026-04-28T08:42:14.000Z","size":156,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2026-04-28T10:31:24.518Z","etag":null,"topics":["junit","junit-extension","matrix-org","synapse","testcontainers"],"latest_commit_sha":null,"homepage":"","language":"Java","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/Cosium.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-07-01T09:42:42.000Z","updated_at":"2026-04-28T08:42:17.000Z","dependencies_parsed_at":"2023-11-07T08:26:42.048Z","dependency_job_id":"4ddc6d3c-f364-4da6-97ff-9b6953fdd356","html_url":"https://github.com/Cosium/synapse-junit-extension","commit_stats":null,"previous_names":["cosium/synapse-junit-extension"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/Cosium/synapse-junit-extension","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cosium%2Fsynapse-junit-extension","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cosium%2Fsynapse-junit-extension/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cosium%2Fsynapse-junit-extension/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cosium%2Fsynapse-junit-extension/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Cosium","download_url":"https://codeload.github.com/Cosium/synapse-junit-extension/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cosium%2Fsynapse-junit-extension/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33763649,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-01T02:00:06.963Z","response_time":115,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","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":["junit","junit-extension","matrix-org","synapse","testcontainers"],"created_at":"2025-03-04T00:39:04.869Z","updated_at":"2026-06-01T06:32:13.642Z","avatar_url":"https://github.com/Cosium.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://github.com/Cosium/synapse-junit-extension/actions/workflows/ci.yml/badge.svg)](https://github.com/Cosium/synapse-junit-extension/actions/workflows/ci.yml)\n[![Maven Central](https://img.shields.io/maven-central/v/com.cosium.synapse_junit_extension/synapse-junit-extension.svg)](https://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22com.cosium.synapse_junit_extension%22%20AND%20a%3A%22synapse-junit-extension%22)\n\n# Synapse Junit Extension\n\n[JUnit](https://junit.org) extension allowing to run tests against a real [Synapse](https://github.com/matrix-org/synapse) instance.\n\n# Usage\n\n```java\n@EnableSynapse\nclass SynapseTest {\n  @Test\n  void test(Synapse synapse) throws IOException, InterruptedException {\n    URI synapseUri = URI.create(synapse.url() + \"/_matrix/static/\");\n    HttpResponse\u003cString\u003e response = HttpClient\n      .newHttpClient()\n      .send(\n        HttpRequest.newBuilder(synapseUri).GET().build(),\n\tHttpResponse.BodyHandlers.ofString());\n\n    assertThat(response.body()).contains(\"Synapse is running\");\n    assertThat(response.statusCode()).isEqualTo(200);\n  }\n}\n```\n\nFor performance reasons, a single Synapse instance is shared with any test belonging to any class annotated\nwith `@EnableSynapse`. Therefore, you can run a test suite containing as many test classes as you want, Synapse will be started only once. It will shutdown at the end of the JUnit runtime.\n\n# Dependency\n\n```xml\n\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.cosium.synapse_junit_extension\u003c/groupId\u003e\n  \u003cartifactId\u003esynapse-junit-extension\u003c/artifactId\u003e\n  \u003cversion\u003e${synapse-junit-extension.version}\u003c/version\u003e\n  \u003cscope\u003etest\u003c/scope\u003e\n\u003c/dependency\u003e\n```\n\n# Requirements\n\n* JDK 11+\n* Docker\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcosium%2Fsynapse-junit-extension","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcosium%2Fsynapse-junit-extension","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcosium%2Fsynapse-junit-extension/lists"}