• Stars
    star
    546
  • Rank 81,396 (Top 2 %)
  • Language
    Java
  • License
    Other
  • Created almost 13 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A collection of JUnit rules for testing code which uses java.lang.System.

System Rules

Build Status Linux Build Status Windows

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.

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 the Installation section of this readme.
  • Commit the modified pom.xml and README.md.
  • Run mvnw clean deploy with JDK 6 or 7.
  • Add a tag for the release: git tag system-rules-X.X.X

More Repositories

1

system-lambda

System Lambda is a collection of functions for testing code that uses java.lang.System
Java
211
star
2

fake-sftp-server-rule

A JUnit rule that runs an in-memory SFTP server.
Java
40
star
3

fake-sftp-server-lambda

Runs an in-memory SFTP server while your tests are running.
Java
24
star
4

yfcc100m-downloader

YFCC100M Downloader
Python
24
star
5

fishbowl

Fishbowl provides helper methods for dealing with exceptions.
Java
22
star
6

travis-deploy-to-maven-central

An example Maven project for deploying a library to Maven Central
Shell
16
star
7

talkative-junit-tests

A JUnit test runner that supports arbitrary strings as test names.
Java
7
star
8

junit3

JUnit 3 only
Java
3
star
9

jfortschritt

JFortschritt is a small library for writing progress bars to the command-line.
Java
3
star
10

iti-ngram

Ngram analyzer written in Java
Java
1
star
11

semantic-wrapper

Generate wrapper classes with semantics.
Java
1
star
12

flea

A simple web server for static pages.
JavaScript
1
star
13

flashcardio

A web application for learning with flash cards.
JavaScript
1
star
14

locurlizer

A servlet filter for multilingual urls.
1
star
15

google-code-jam-template

A Java template for Google Code Jam
Java
1
star
16

glossy-buttons

A patch for Twitter Bootstrap that makes buttons glossy.
1
star
17

junit-playground

A playground with JUnit talks and experiments.
Java
1
star
18

chelidonium

Twitter Bootstrap meets Spring MVC
Java
1
star
19

jmarkdown2revealjs

Converts Markdown files to reveal.js slides.
Java
1
star
20

standardoutputstreamlog-ant

An ant project for verifying stefanbirkner/system-rules#8
Java
1
star
21

picover

A PicoContainer that makes it possible to use Spring managed beans.
Java
1
star
22

stefan-birkner.de

My Homepage
HTML
1
star
23

vallado

A library that supports testing exceptions with Java 8 Lambdas. Can be used with JUnit and with TestNG.
Java
1
star
24

junit4-issue-1488

This project contains code that verifies junitteam/junit#1488
HTML
1
star
25

gist-backup

Commandline tool for managing a backup of your Gists
Go
1
star