System Rules is a collection of JUnit rules for testing code which uses
System Lambda is an alternative to System Rules that leverages the possibilities of Java 8. It is independent of the test framework. You can use it for example as a replacement for System Rules in JUnit Jupiter and TestNG.
System Rules is available from Maven Central.
<dependency> <groupId>com.github.stefanbirkner</groupId> <artifactId>system-rules</artifactId> <version>1.19.0</version> </dependency>
Please don't forget to add the scope
test if you're using System
Rules for tests only.
System Rules' documentation is stored in the
gh-pages branch and is
available online at
You have three options if you have a feature request, found a bug or simply have a question about System Rules.
System Rules is build with Maven. If you want to contribute code than
The basic coding style is described in the
System Rules supports Travis CI (Linux) and AppVeyor (Windows) for continuous integration. Your pull request will be automatically build by both CI servers. On Travis CI we build your pull request with OpenJDK 6 and run test with different JDKs (Java 6 to 10).
pom.xmland in the
Installationsection of this readme.
mvnw clean deploywith JDK 6 or 7.
git tag system-rules-X.X.X