{"id":20877454,"url":"https://github.com/t1/test-tools","last_synced_at":"2025-05-12T16:30:40.372Z","repository":{"id":52927757,"uuid":"45735560","full_name":"t1/test-tools","owner":"t1","description":"Collection of test utility classes","archived":false,"fork":false,"pushed_at":"2023-06-15T06:22:12.000Z","size":124,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2023-07-27T17:24:52.418Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/t1.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}},"created_at":"2015-11-07T12:30:08.000Z","updated_at":"2023-06-15T06:22:10.000Z","dependencies_parsed_at":"2022-08-24T08:10:38.137Z","dependency_job_id":null,"html_url":"https://github.com/t1/test-tools","commit_stats":null,"previous_names":[],"tags_count":18,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t1%2Ftest-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t1%2Ftest-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t1%2Ftest-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t1%2Ftest-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/t1","download_url":"https://codeload.github.com/t1/test-tools/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225141812,"owners_count":17427362,"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":[],"created_at":"2024-11-18T06:57:04.787Z","updated_at":"2024-11-18T06:57:05.517Z","avatar_url":"https://github.com/t1.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# test-tools [![Download](https://maven-badges.herokuapp.com/maven-central/com.github.t1/test-tools/badge.svg)](https://search.maven.org/artifact/com.github.t1/test-tools)\n\nCollection of test utility classes:\n\n* Subclass `AbstractPackageDependenciesTest` and annotate your packages with `@DependsUpon` to check dependencies between packages.\n* Declare a `@Rule` with `FileMemento` to restore a file after the test.\n* Overwrite and restore system properties with the `SystemPropertiesRule`.\n* Declare a generic `MementoRule` for arbitrary things to restore, using a `Supplier` and a `Consumer`.\n* Log the beginning and end of a test run, by declaring a `TestLoggerRule`.\n\n# Compatibility with JDK-9+\n\nThe `AbstractPackageDependenciesTest` depends on classes from the `jdeps` tool in JDK 8 residing in the `tools.jar`.\nThis file has been removed in JDK 9 and the jdeps classes where moved into the module `jdk.jdeps`,\nbut without exporting the classes, so we can't just add a `module-info.java`.\nThis may become a problem in the future, but for now, we can live with a Maven profile, so building works on JDK8 and 9.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ft1%2Ftest-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ft1%2Ftest-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ft1%2Ftest-tools/lists"}