Description
System Rules is a collection of JUnit rules for testing code which uses java.lang.System.
System Rules alternatives and similar libraries
Based on the "Testing" category.
Alternatively, view System Rules alternatives based on common mentions on social networks and blogs.
-
Mockito
Most popular Mocking framework for unit tests written in Java -
Apache JMeter
Apache JMeter open-source load testing tool for analyzing and measuring the performance of a variety of services -
TestContainers
Testcontainers is a Java library that supports JUnit tests, providing lightweight, throwaway instances of common databases, Selenium web browsers, or anything else that can run in a Docker container. -
MockServer
MockServer enables easy mocking of any system you integrate with via HTTP or HTTPS with clients written in Java, JavaScript and Ruby. MockServer also includes a proxy that introspects all proxied traffic including encrypted SSL traffic and supports Port Forwarding, Web Proxying (i.e. HTTP proxy), HTTPS Tunneling Proxying (using HTTP CONNECT) and SOCKS Proxying (i.e. dynamic port forwarding). -
PowerMock
PowerMock is a Java framework that allows you to unit test code normally regarded as untestable. -
Awaitility
Awaitility is a small Java DSL for synchronizing asynchronous operations -
AssertJ
AssertJ is a library providing easy to use rich typed assertions -
ArchUnit
A Java architecture test library, to specify and assert architecture rules in plain Java -
Pact JVM
JVM version of Pact. Enables consumer driven contract testing, providing a mock service and DSL for the consumer project, and interaction playback and verification for the service provider project. -
Selenium
Portable software testing framework for web applications. -
JSONAssert
Write JSON unit tests in less code. Great for testing REST interfaces. -
JMockit
Advanced Java library for integration testing, mocking, faking, and code coverage -
Citrus
Framework for automated integration tests with focus on messaging integration -
ConcurrentUnit
Toolkit for testing multi-threaded and asynchronous applications -
junit-dataprovider
A TestNG like dataprovider runner for JUnit with many additional features -
Lamdba Behave
A modern testing and behavioural specification framework for Java 8 -
Jukito
The combined power of JUnit, Guice and Mockito. Plus it sounds like a cool martial art. -
Mutability Detector
Lightweight analysis tool for detecting mutability in Java classes -
Arquillian
Integration and functional testing platform for Java EE containers. -
Randomized Testing
Randomized Testing (Core JUnit Runner, ANT, Maven) -
Spectrum
A BDD-style test runner for Java 8. Inspired by Jasmine, RSpec, and Cucumber. -
Scott Test Reporter
Never debug a test again: Detailed failure reports and hassle free assertions for Java tests - Power Asserts for Java -
pojo-tester
Java testing framework for testing pojo methods. It tests equals, hashCode, toString, getters, setters, constructors and whatever you report in issues ;) -
raml-tester
Test if a request/response matches a given raml definition -
J8Spec
Library that allows tests written in Java to follow the BDD style introduced by RSpec and Jasmine.
Build time-series-based applications quickly and at scale.
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of System Rules or a related project?
README
System Rules
System Rules is a collection of JUnit rules for testing code which uses
java.lang.System
.
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.
Installation
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.
Usage
System Rules' documentation is stored in the gh-pages
branch and is
available online at
http://stefanbirkner.github.io/system-rules/index.html
Contributing
You have three options if you have a feature request, found a bug or simply have a question about System Rules.
- Write an issue.
- Create a pull request. (See Understanding the GitHub Flow)
- Write a mail to [email protected]
Development Guide
System Rules is build with Maven. If you want to contribute code than
- Please write a test for your change.
- Ensure that you didn't break the build by running
mvnw test
. - Fork the repo and create a pull request. (See Understanding the GitHub Flow)
The basic coding style is described in the
EditorConfig file .editorconfig
.
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).
Release Guide
- Select a new version according to the Semantic Versioning 2.0.0 Standard.
- Set the new version in
pom.xml
and in theInstallation
section of this readme. - Commit the modified
pom.xml
andREADME.md
. - Run
mvnw clean deploy
with JDK 6 or 7. - Add a tag for the release:
git tag system-rules-X.X.X