Commit 9d74da0
committed
Migrate JUnit 4 assertions to AssertJ
Migrate all existing JUnit 4 `assert...` based assertions to AssertJ
and add a checkstyle rule to ensure they don't return.
See spring-projectsgh-230221 parent 95a9d46 commit 9d74da0
1,636 files changed
Lines changed: 37947 additions & 40476 deletions
File tree
- spring-aop/src/test/java/org/springframework/aop
- aspectj
- annotation
- autoproxy
- config
- framework
- adapter
- interceptor
- scope
- support
- target
- dynamic
- spring-aspects/src/test/java/org/springframework
- beans/factory/aspectj
- cache/aspectj
- context/annotation/aspectj
- scheduling/aspectj
- transaction/aspectj
- spring-beans/src/test/java/org/springframework/beans
- factory
- annotation
- config
- parsing
- serviceloader
- support
- security
- wiring
- xml
- support
- propertyeditors
- support
- spring-context-support/src/test/java/org/springframework
- cache
- caffeine
- ehcache
- jcache
- config
- interceptor
- transaction
- mail
- javamail
- scheduling/quartz
- validation/beanvalidation2
- spring-context/src/test/java/org/springframework
- aop
- aspectj
- autoproxy
- benchmark
- generic
- config
- framework
- autoproxy
- scope
- target
- beans/factory
- annotation
- support
- xml
- support
- cache
- annotation
- concurrent
- config
- interceptor
- context
- annotation
- configuration
- config
- conversionservice
- event
- test
- expression
- groovy
- i18n
- support
- ejb
- access
- config
- format
- datetime
- joda
- standard
- number
- money
- support
- instrument/classloading
- jmx
- access
- export
- annotation
- assembler
- naming
- notification
- support
- jndi
- remoting
- rmi
- support
- scheduling
- annotation
- concurrent
- config
- support
- scripting
- bsh
- config
- groovy
- support
- ui
- validation
- beanvalidation
- spring-core/src/test/java/org/springframework
- core
- annotation
- codec
- convert
- converter
- support
- env
- io
- buffer
- support
- support
- log
- serializer
- style
- task
- type
- tests
- util
- comparator
- concurrent
- unit
- xml
- spring-expression/src/test/java/org/springframework/expression/spel
- ast
- standard
- support
- spring-jdbc/src/test/java/org/springframework/jdbc
- config
- core
- namedparam
- simple
- support
- datasource
- embedded
- init
- lookup
- object
- support
- spring-jms/src/test/java/org/springframework/jms
- annotation
- config
- connection
- core
- support
- listener
- adapter
- endpoint
- remoting
- support
- converter
- destination
- spring-messaging/src/test/java/org/springframework/messaging
- converter
- core
- handler
- annotation
- reactive
- support
- invocation
- reactive
- rsocket
- simp
- annotation/support
- broker
- config
- stomp
- user
- support
- spring-orm/src/test/java/org/springframework/orm/jpa
- eclipselink
- hibernate
- persistenceunit
- support
- spring-oxm/src/test/java/org/springframework/oxm
- config
- jaxb
- jibx
- xstream
- spring-test/src/test/java/org/springframework
- mock
- http/server/reactive
- web
- test
- annotation
- context
- cache
- configuration
- interfaces
- env
- expression
- groovy
- hierarchies
- meta
- standard
- web
- jdbc
- junit4
- aci
- annotation
- xml
- annotation
- meta
- hybrid
- nested
- orm
- profile
- annotation
- importresource
- resolver
- xml
- rules
- spr3896
- spr4868
- spr8849
- spr9051
- spr9604
- spr9645
- support
- testng
- transaction/programmatic
- web
- transaction
- ejb
- programmatic
- web
- socket
- util
- web
- client
- response
- samples
- matchers
- reactive/server
- samples
- servlet
- htmlunit
- webdriver
- request
- result
- samples
- context
- spr
- standalone
- resultmatchers
- setup
- spring-tx/src/test/java/org/springframework
- dao
- annotation
- support
- jca
- cci
- support
- transaction
- annotation
- config
- event
- interceptor
- jta
- reactive
- support
- spring-webflux/src/test/java/org/springframework/web/reactive
- accept
- config
- function
- client
- support
- server
- support
- handler
- resource
- result
- condition
- method
- annotation
- view
- freemarker
- script
- socket
- server/support
- spring-webmvc/src/test/java/org/springframework/web
- context
- support
- servlet
- config
- annotation
- function
- handler
- i18n
- mvc
- annotation
- condition
- method
- annotation
- support
- resource
- support
- tags
- form
- theme
- view
- document
- feed
- freemarker
- groovy
- json
- script
- tiles3
- xml
- xslt
- util
- spring-websocket/src/test/java/org/springframework/web/socket
- adapter
- jetty
- standard
- client
- jetty
- standard
- config
- annotation
- handler
- messaging
- server
- standard
- support
- sockjs
- client
- frame
- support
- transport
- handler
- session
- spring-web/src/test/java/org/springframework
- http
- client
- reactive
- support
- codec
- cbor
- json
- multipart
- protobuf
- support
- xml
- converter
- feed
- json
- protobuf
- smile
- xml
- server
- reactive
- remoting
- caucho
- httpinvoker
- jaxws
- web
- accept
- bind
- support
- client
- context
- request
- async
- support
- cors
- reactive
- filter
- reactive
- jsf
- method
- annotation
- support
- multipart
- commons
- support
- server
- adapter
- handler
- i18n
- session
- util
- pattern
- src
- checkstyle
- test/java/org/springframework
- aop
- config
- framework/autoproxy
- cache/annotation
- context/annotation
- jsr330
- scope
- core/env
- scheduling/annotation
- transaction/annotation
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 7 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | | - | |
28 | | - | |
29 | 28 | | |
30 | 29 | | |
31 | 30 | | |
| |||
236 | 235 | | |
237 | 236 | | |
238 | 237 | | |
239 | | - | |
240 | | - | |
| 238 | + | |
241 | 239 | | |
242 | 240 | | |
243 | 241 | | |
| |||
248 | 246 | | |
249 | 247 | | |
250 | 248 | | |
251 | | - | |
| 249 | + | |
252 | 250 | | |
253 | | - | |
254 | | - | |
| 251 | + | |
255 | 252 | | |
256 | 253 | | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
261 | 257 | | |
262 | 258 | | |
263 | 259 | | |
| |||
Lines changed: 29 additions & 34 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | 43 | | |
47 | 44 | | |
48 | 45 | | |
| |||
81 | 78 | | |
82 | 79 | | |
83 | 80 | | |
84 | | - | |
| 81 | + | |
85 | 82 | | |
86 | | - | |
| 83 | + | |
87 | 84 | | |
88 | 85 | | |
89 | 86 | | |
| |||
99 | 96 | | |
100 | 97 | | |
101 | 98 | | |
102 | | - | |
| 99 | + | |
103 | 100 | | |
104 | | - | |
| 101 | + | |
105 | 102 | | |
106 | 103 | | |
107 | 104 | | |
| |||
128 | 125 | | |
129 | 126 | | |
130 | 127 | | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
135 | 132 | | |
136 | 133 | | |
137 | 134 | | |
| |||
154 | 151 | | |
155 | 152 | | |
156 | 153 | | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
164 | 161 | | |
165 | 162 | | |
166 | 163 | | |
| |||
201 | 198 | | |
202 | 199 | | |
203 | 200 | | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
210 | 205 | | |
211 | 206 | | |
212 | 207 | | |
| |||
215 | 210 | | |
216 | 211 | | |
217 | 212 | | |
218 | | - | |
| 213 | + | |
219 | 214 | | |
220 | | - | |
| 215 | + | |
221 | 216 | | |
222 | | - | |
| 217 | + | |
223 | 218 | | |
224 | 219 | | |
225 | 220 | | |
| |||
228 | 223 | | |
229 | 224 | | |
230 | 225 | | |
231 | | - | |
| 226 | + | |
232 | 227 | | |
233 | | - | |
| 228 | + | |
234 | 229 | | |
235 | 230 | | |
236 | | - | |
| 231 | + | |
237 | 232 | | |
238 | 233 | | |
239 | 234 | | |
| |||
260 | 255 | | |
261 | 256 | | |
262 | 257 | | |
263 | | - | |
| 258 | + | |
264 | 259 | | |
265 | 260 | | |
266 | 261 | | |
267 | | - | |
| 262 | + | |
268 | 263 | | |
269 | 264 | | |
270 | 265 | | |
| |||
279 | 274 | | |
280 | 275 | | |
281 | 276 | | |
282 | | - | |
| 277 | + | |
283 | 278 | | |
284 | 279 | | |
285 | 280 | | |
286 | 281 | | |
287 | 282 | | |
288 | 283 | | |
289 | | - | |
| 284 | + | |
290 | 285 | | |
291 | 286 | | |
292 | 287 | | |
| |||
Lines changed: 3 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
| 23 | + | |
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
| |||
80 | 79 | | |
81 | 80 | | |
82 | 81 | | |
83 | | - | |
84 | | - | |
| 82 | + | |
85 | 83 | | |
86 | 84 | | |
87 | 85 | | |
88 | | - | |
89 | | - | |
| 86 | + | |
90 | 87 | | |
91 | 88 | | |
92 | 89 | | |
| |||
Lines changed: 31 additions & 35 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | 43 | | |
48 | 44 | | |
49 | 45 | | |
| |||
80 | 76 | | |
81 | 77 | | |
82 | 78 | | |
83 | | - | |
| 79 | + | |
84 | 80 | | |
85 | 81 | | |
86 | 82 | | |
87 | 83 | | |
88 | | - | |
89 | | - | |
| 84 | + | |
| 85 | + | |
90 | 86 | | |
91 | 87 | | |
92 | | - | |
| 88 | + | |
93 | 89 | | |
94 | | - | |
| 90 | + | |
95 | 91 | | |
96 | 92 | | |
97 | | - | |
| 93 | + | |
98 | 94 | | |
99 | 95 | | |
100 | 96 | | |
| |||
103 | 99 | | |
104 | 100 | | |
105 | 101 | | |
106 | | - | |
| 102 | + | |
107 | 103 | | |
108 | 104 | | |
109 | | - | |
110 | | - | |
| 105 | + | |
| 106 | + | |
111 | 107 | | |
112 | | - | |
113 | | - | |
| 108 | + | |
| 109 | + | |
114 | 110 | | |
115 | 111 | | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
122 | 118 | | |
123 | 119 | | |
124 | 120 | | |
125 | 121 | | |
126 | 122 | | |
127 | 123 | | |
128 | | - | |
| 124 | + | |
129 | 125 | | |
130 | 126 | | |
131 | 127 | | |
| |||
137 | 133 | | |
138 | 134 | | |
139 | 135 | | |
140 | | - | |
141 | | - | |
| 136 | + | |
| 137 | + | |
142 | 138 | | |
143 | 139 | | |
144 | 140 | | |
| |||
157 | 153 | | |
158 | 154 | | |
159 | 155 | | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
164 | 160 | | |
165 | 161 | | |
166 | 162 | | |
| |||
181 | 177 | | |
182 | 178 | | |
183 | 179 | | |
184 | | - | |
185 | | - | |
186 | | - | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
187 | 183 | | |
188 | | - | |
189 | | - | |
190 | | - | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
191 | 187 | | |
192 | 188 | | |
193 | 189 | | |
| |||
0 commit comments