Commit 3580f04
authored
Add contracts to Kotlin-specific assertions (#3259)
* Introduce Kotlin-specific `assertNull` and `assertNotNull` methods
* Introduce contracts for `assertNull`, `assertNotNull`, `assertThrows`
and `assertDoesNotThrow` methods
* Add examples to KotlinAssertionsDemo
Resolves #1866.1 parent 2f2dc33 commit 3580f04
File tree
5 files changed
+410
-16
lines changed- documentation/src
- docs/asciidoc/release-notes
- test/kotlin/example
- junit-jupiter-api/src/main/kotlin/org/junit/jupiter/api
- jupiter-tests/src/test/kotlin/org/junit/jupiter/api
5 files changed
+410
-16
lines changedLines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
| |||
Lines changed: 26 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
| |||
107 | 109 | | |
108 | 110 | | |
109 | 111 | | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
110 | 136 | | |
111 | 137 | | |
0 commit comments