{"id":13511860,"url":"https://github.com/stefanbirkner/system-rules","last_synced_at":"2025-05-15T00:07:49.607Z","repository":{"id":1948856,"uuid":"2878641","full_name":"stefanbirkner/system-rules","owner":"stefanbirkner","description":"A collection of JUnit rules for testing code which uses java.lang.System.","archived":false,"fork":false,"pushed_at":"2023-04-14T11:08:27.000Z","size":1663,"stargazers_count":549,"open_issues_count":25,"forks_count":72,"subscribers_count":20,"default_branch":"master","last_synced_at":"2025-05-14T02:14:13.825Z","etag":null,"topics":["java","junit","junit-rule","unit-testing"],"latest_commit_sha":null,"homepage":"http://stefanbirkner.github.io/system-rules","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stefanbirkner.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}},"created_at":"2011-11-29T22:07:23.000Z","updated_at":"2025-05-04T19:00:48.000Z","dependencies_parsed_at":"2023-07-06T09:01:46.743Z","dependency_job_id":null,"html_url":"https://github.com/stefanbirkner/system-rules","commit_stats":{"total_commits":159,"total_committers":9,"mean_commits":"17.666666666666668","dds":0.06289308176100628,"last_synced_commit":"27f3eee0355f1ba753c035561211c96308a6a500"},"previous_names":[],"tags_count":29,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefanbirkner%2Fsystem-rules","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefanbirkner%2Fsystem-rules/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefanbirkner%2Fsystem-rules/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefanbirkner%2Fsystem-rules/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stefanbirkner","download_url":"https://codeload.github.com/stefanbirkner/system-rules/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254249197,"owners_count":22039029,"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","junit","junit-rule","unit-testing"],"created_at":"2024-08-01T03:01:14.276Z","updated_at":"2025-05-15T00:07:44.594Z","avatar_url":"https://github.com/stefanbirkner.png","language":"Java","readme":"# System Rules\n\n[![Build Status Linux](https://travis-ci.org/stefanbirkner/system-rules.svg?branch=master)](https://travis-ci.org/stefanbirkner/system-rules) [![Build Status Windows](https://ci.appveyor.com/api/projects/status/vr0c93rssc6mhetl/branch/master?svg=true)](https://ci.appveyor.com/project/stefanbirkner/system-rules)\n\nSystem Rules is a collection of JUnit rules for testing code which uses\n`java.lang.System`.\n\n[System Lambda](https://github.com/stefanbirkner/system-lambda) is an\nalternative to System Rules that leverages the possibilities of Java 8. It is\nindependent of the test framework. You can use it for example as a replacement\nfor System Rules in [JUnit Jupiter](https://junit.org/junit5/) and\n[TestNG](https://testng.org/doc/index.html).\n\n\n## Installation\n\nSystem Rules is available from\n[Maven Central](http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22com.github.stefanbirkner%22%20AND%20a%3A%22system-rules%22).\n\n    \u003cdependency\u003e\n      \u003cgroupId\u003ecom.github.stefanbirkner\u003c/groupId\u003e\n      \u003cartifactId\u003esystem-rules\u003c/artifactId\u003e\n      \u003cversion\u003e1.19.0\u003c/version\u003e\n    \u003c/dependency\u003e\n\nPlease don't forget to add the scope `test` if you're using System\nRules for tests only.\n\n\n## Usage\n\nSystem Rules' documentation is stored in the `gh-pages` branch and is\navailable online at\nhttp://stefanbirkner.github.io/system-rules/index.html\n\n\n## Contributing\n\nYou have three options if you have a feature request, found a bug or\nsimply have a question about System Rules.\n\n* [Write an issue.](https://github.com/stefanbirkner/system-rules/issues/new)\n* Create a pull request. (See [Understanding the GitHub Flow](https://guides.github.com/introduction/flow/index.html))\n* [Write a mail to mail@stefan-birkner.de](mailto:mail@stefan-birkner.de)\n\n\n## Development Guide\n\nSystem Rules is build with [Maven](http://maven.apache.org/). If you\nwant to contribute code than\n\n* Please write a test for your change.\n* Ensure that you didn't break the build by running `mvnw test`.\n* Fork the repo and create a pull request. (See [Understanding the GitHub Flow](https://guides.github.com/introduction/flow/index.html))\n\nThe basic coding style is described in the\n[EditorConfig](http://editorconfig.org/) file `.editorconfig`.\n\nSystem Rules supports [Travis CI](https://travis-ci.org/) (Linux) and\n[AppVeyor](http://www.appveyor.com/) (Windows) for continuous\nintegration. Your pull request will be automatically build by both CI\nservers. On Travis CI we build your pull request with OpenJDK 6 and run test\nwith different JDKs (Java 6 to 10).\n\n\n## Release Guide\n\n* Select a new version according to the\n  [Semantic Versioning 2.0.0 Standard](http://semver.org/).\n* Set the new version in `pom.xml` and in the `Installation` section of\n  this readme.\n* Commit the modified `pom.xml` and `README.md`.\n* Run `mvnw clean deploy` with JDK 6 or 7.\n* Add a tag for the release: `git tag system-rules-X.X.X`\n","funding_links":[],"categories":["Java","测试"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstefanbirkner%2Fsystem-rules","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstefanbirkner%2Fsystem-rules","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstefanbirkner%2Fsystem-rules/lists"}