Commit 16e03b8
authored
Add
The Groovy DSL was missing support for the `nullChannel()`, which is a
special channel that discards messages (acts like `/dev/null`). This
prevents users from using `nullChannel` in their Groovy integration
flows.
Add unit tests to verify:
- `nullChannel` can be used at the end of a flow
- `nullChannel` can be used after transform operations
- Messages are properly discarded without exceptions
* Refactor `nullChannel` tests to use bean configuration
The original implementation had left the beans as dead code after initial tests were deemed to weak.
However, the dynamic flow increased the amount of code to maintain.
Changes include:
- Replace dynamic flow creation with `@Bean` configuration methods
- Add shared `nullCheckWireTapChannel` bean for message verification
- Simplify test methods by using autowired channels
- Add `@since 7.0.1` annotation to `nullChannel()` method documentation
* Format NullChannel DSL javadoc
NullChannel for groovy DSL `see` and `since` annotation were moved to correct locationnullChannel() to Groovy DSL1 parent e70153e commit 16e03b8
File tree
2 files changed
+65
-0
lines changed- spring-integration-groovy/src
- main/groovy/org/springframework/integration/groovy/dsl
- test/groovy/org/springframework/integration/groovy/dsl/test
2 files changed
+65
-0
lines changedLines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
106 | 118 | | |
107 | 119 | | |
108 | 120 | | |
| |||
Lines changed: 53 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
223 | 252 | | |
224 | 253 | | |
225 | 254 | | |
| |||
361 | 390 | | |
362 | 391 | | |
363 | 392 | | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
364 | 417 | | |
365 | 418 | | |
366 | 419 | | |
| |||
0 commit comments