Skip to content

Releases: itsallcode/junit5-system-extensions

Delegate security manager calls

26 Apr 14:39
Compare
Choose a tag to compare

JUnit5 System Extensions 1.2.0, released 2021-04-26

Summary

When trapping System.exit calls, the ExitGuardSecurityManager now doesn't simply replace an existing security manager anymore. Instead it uses the existing one as a delegate for all checks except the exit check.

This way applications that require a security manager don't change their behavior.

Update of the release letter 2021-05-02:
This version actually contains a breaking change that we overlooked: from this release on only Java 11 and above are supported.

Features

  • #23: Delegate security manager calls to the original security manager

Refactoring

  • #21: Migrate to Maven Central

Allow muting System.out / System.err

28 Dec 09:37
Compare
Choose a tag to compare

To mute the output (i.e. don't forward output to System.out / System.err) call stream.captureMuted() instead of stream.capture(). This can be useful to speed up unit tests.

See #16

Support for System.out and System.err

05 Nov 18:16
Compare
Choose a tag to compare

Features:

#5: Support asserting data sent to System.out and System.err

Enhancements:

#7: Changes license to EPL V2.0
#9: Support deployment to Maven Central

Bugfix:

#11: Improved robustness in case of multiple tests in one class and different output streams.

Assert System.exit(int)

21 Oct 09:09
40ed8d5
Compare
Choose a tag to compare

Features:

  • #1: Support asserting System.exit(int)