{"id":15346676,"url":"https://github.com/centic9/commons-test","last_synced_at":"2025-04-15T03:32:31.047Z","repository":{"id":31309562,"uuid":"34871869","full_name":"centic9/commons-test","owner":"centic9","description":"Utilitity library for testing stuff that I use in multiple projects ","archived":false,"fork":false,"pushed_at":"2025-04-05T08:18:39.000Z","size":552,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-05T08:27:31.494Z","etag":null,"topics":["compare","equals","hashcode","java","junit","mocking","testing"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/centic9.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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},"funding":{"github":"centic9"}},"created_at":"2015-04-30T19:13:52.000Z","updated_at":"2025-04-05T08:18:42.000Z","dependencies_parsed_at":"2023-11-26T12:21:41.466Z","dependency_job_id":"1cc6b6aa-742e-4768-986a-dbc537fbf336","html_url":"https://github.com/centic9/commons-test","commit_stats":{"total_commits":218,"total_committers":5,"mean_commits":43.6,"dds":"0.12385321100917435","last_synced_commit":"5ee18ba28d0462a0ab368243643fcb175cda065a"},"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/centic9%2Fcommons-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/centic9%2Fcommons-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/centic9%2Fcommons-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/centic9%2Fcommons-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/centic9","download_url":"https://codeload.github.com/centic9/commons-test/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249001753,"owners_count":21196443,"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":["compare","equals","hashcode","java","junit","mocking","testing"],"created_at":"2024-10-01T11:25:59.310Z","updated_at":"2025-04-15T03:32:30.763Z","avatar_url":"https://github.com/centic9.png","language":"Java","funding_links":["https://github.com/sponsors/centic9"],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://github.com/centic9/commons-test/actions/workflows/gradle-build.yml/badge.svg)](https://github.com/centic9/commons-test/actions)\n[![Gradle Status](https://gradleupdate.appspot.com/centic9/commons-test/status.svg?branch=master)](https://gradleupdate.appspot.com/centic9/commons-test/status)\n[![Release](https://img.shields.io/github/release/centic9/commons-test.svg)](https://github.com/centic9/commons-test/releases)\n[![GitHub release](https://img.shields.io/github/release/centic9/commons-test.svg?label=changelog)](https://github.com/centic9/commons-test/releases/latest)\n[![Tag](https://img.shields.io/github/tag/centic9/commons-test.svg)](https://github.com/centic9/commons-test/tags)\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/org.dstadler/commons-test/badge.svg?style=flat)](https://maven-badges.herokuapp.com/maven-central/org.dstadler/commons-test) \n[![Maven Central](https://img.shields.io/maven-central/v/org.dstadler/commons-test.svg)](https://maven-badges.herokuapp.com/maven-central/org.dstadler/commons-test)\n\nThis is a small library of code-pieces that I find useful when writing tests.\n\nIt covers areas that I miss in JUnit itself e.g. for verifying compare()/hashCode()/equals() implementations and for multi-threaded tests.\n\n## Contents\n \n* MockSMTPServer - simulate an SMTP Server for testing code which sends emails\n* MockRESTServer - simulate a HTTP Server for testing code which accesses other systems, e.g. to mock REST interfaces in tests\n* TestHelpers - small utilities for testing things like equals(), hashCode(), toString(), compare() and implementations of Comparator, they ensure some things that the Java spec mandates\n* ThreadTestHelpers - easily run unit tests multiple times in parallel to ensure the code does not contain hidden race conditions\n* MemoryLeakVerifier - a simple way of adding memory leak assertions to unit tests\n* TestEnvironment - handling temporary files/directories in a clean way, ensure that files are not locked any more at the end of the test\n* PrivateConstructorCoverage - use this if you would like to get 100% coverage of classes with private constructors\n* HeapDump - trigger a writing a .hprof file\n\n## Use it\n\n### Gradle\n\n    compile 'org.dstadler:commons-test:1.+'\n\n## Change it\n\n### Grab it\n\n    git clone https://github.com/centic9/commons-test.git\n\n### Build it and run tests\n\n    cd commons-test\n    ./gradlew check jacocoTestReport\n\n### Release it\n\n    ./gradlew --console=plain release \u0026\u0026 ./gradlew closeAndReleaseRepository\n\n* This should automatically release the new version on MavenCentral\n* Afterwards go to the [Github releases page](https://github.com/centic9/commons-test/releases) and add release-notes\n\n## Support this project\n\nIf you find this library useful and would like to support it, you can [Sponsor the author](https://github.com/sponsors/centic9)\n\n## Licensing\n\n* commons-test is licensed under the [BSD 2-Clause License].\n* A few pieces are imported from other sources, the source-files contain the necessary license pieces/references.\n\n[BSD 2-Clause License]: https://www.opensource.org/licenses/bsd-license.php\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcentic9%2Fcommons-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcentic9%2Fcommons-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcentic9%2Fcommons-test/lists"}