Commit 328f379
authored
Add tests for invalid and edge cases in DurationValidator (#7287)
DurationValidator validates externally supplied duration configuration
values. Existing tests cover only successful parsing scenarios.
This change adds tests for several invalid and boundary inputs:
- blank values
- malformed duration strings
- missing units
- invalid units
- invalid ISO8601 durations
- null values
These tests improve coverage of validation paths and help prevent
regressions in configuration parsing.
Signed-off-by: Joowon-Seo <tjwndnjs1998@gmail.com>1 parent f7c95b6 commit 328f379
1 file changed
Lines changed: 32 additions & 0 deletions
File tree
- micrometer-core/src/test/java/io/micrometer/core/instrument/config
Lines changed: 32 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
56 | 88 | | |
0 commit comments