Skip to content

Commit 6cf8f1f

Browse files
committed
Merge pull request #999 from kcooney/add-pull-993-to-release-notes
Add pull request 993 to release notes
2 parents 597977e + 5c885a7 commit 6cf8f1f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

doc/ReleaseNotes4.12.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ This allows for validation to be added to annotations. Validators should extend
100100
`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.
101101

102102

103-
### [Pull request #818:](https://github.com/junit-team/junit/pull/818) External version of AssumptionViolatedException
103+
### [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
104104

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

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

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

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

0 commit comments

Comments
 (0)