diff --git a/README.md b/README.md index ff381f6..021f9ab 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,9 @@ class TestSystemExit } ``` -Note that in order to be able to trap system exit, the `ExitGuard` temporarily replaces the existing security manager (if any). +The `ExitGuard` temporarily replaces the existing security manager. + +From version 1.2.0 on if a security guard existed before, it serves as a delegate for all security checks with the exception of the `checkExit`. ## Asserting Data Sent to `System.out` @@ -91,6 +93,10 @@ Capturing data sent to `System.err` works in the exact same way as in the [`Syst Please check our [contribution guide](.github/CONTRIBUTING.md) to learn how you can help with the project, report errors or request features. +## Changelog + +[Changelog](doc/changes/changelog.mk) + ## Development ### Build Time Dependencies diff --git a/doc/changes/changelog.md b/doc/changes/changelog.md new file mode 100644 index 0000000..bee3298 --- /dev/null +++ b/doc/changes/changelog.md @@ -0,0 +1,4 @@ +# Changes + +* [1.2.0](changes_1.2.0.md) +* [1.1.0](changes_1.1.0.md) \ No newline at end of file diff --git a/doc/changes/changes_1.1.0.md b/doc/changes/changes_1.1.0.md new file mode 100644 index 0000000..c508f32 --- /dev/null +++ b/doc/changes/changes_1.1.0.md @@ -0,0 +1,11 @@ +# JUnit5 System Extensions 1.1.0, released 2019-12-28 + +Code name: Mute output + +## Summary + +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. + +## Features + +* #16: Mute output of captured streams \ No newline at end of file diff --git a/doc/changes/changes_1.2.0.md b/doc/changes/changes_1.2.0.md new file mode 100644 index 0000000..449a3db --- /dev/null +++ b/doc/changes/changes_1.2.0.md @@ -0,0 +1,17 @@ +# JUnit5 System Extensions 1.2.0, released 2019-04-22 + +Code name: Mute output + +## 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. + +## Features + +* #23: Delegate security manager calls to the original security manager + +## Refactoring + +* #21: Migrate to Maven Central \ No newline at end of file diff --git a/pom.xml b/pom.xml index 3ee5c31..36b4eeb 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 org.itsallcode junit5-system-extensions - 1.1.0 + 1.2.0 JUnit5 System Extensions These extensions help testing behavior that is related to `System.x` calls like `exit(int). https://github.com/itsallcode/junit5-system-extensions