Skip to content

Commit

Permalink
Add pull request 993 to release notes
Browse files Browse the repository at this point in the history
  • Loading branch information
kcooney committed Sep 27, 2014
1 parent 597977e commit 5c885a7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion doc/ReleaseNotes4.12.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ This allows for validation to be added to annotations. Validators should extend
`ExpectedException` didn't handle `AssertionError`s and `AssumptionViolatedException` well. This has been fixed. The new documentation explains the usage of `ExpectedException` for testing these exceptions. The two methods `handleAssertionErrors()` and `handleAssumptionViolatedExceptions()` are not needed anymore. If you have used them, just remove it and read `ExpectedException`'s documentation.


### [Pull request #818:](https://github.com/junit-team/junit/pull/818) External version of AssumptionViolatedException
### [Pull request #818:](https://github.com/junit-team/junit/pull/818) [Pull request #993:](https://github.com/junit-team/junit/pull/993) External version of AssumptionViolatedException

In JUnit 4.11 and earlier, if you wanted to write a custom runner that handled
`AssumptionViolatedException` or you needed to create an instance of `AssumptionViolatedException`
Expand All @@ -110,6 +110,10 @@ Now you can import `org.junit.AssumptionViolatedException` (which extends

The classes in `Assume` have been modified to throw `org.junit.AssumptionViolatedException`.

The constructors in the external `AssumptionViolatedException` are also
simpler than the ones in the internal version. That being said,
it's recommended that you create `AssumptionViolatedException` via the methods in `Assume`.


### [Pull request #985:](https://github.com/junit-team/junit/pull/985) Change AssumptionViolatedException to not set the cause to null; fixes issue #494

Expand Down

0 comments on commit 5c885a7

Please sign in to comment.