Commit 0958a9d
test(reader): unit-cover VortexHttpReader.open(uri, registry) overload
The prior IT (#116) exercised the two-arg overload but @tag("integration")
*IT classes run under failsafe, not surefire, so JaCoCo/Sonar never saw
them — new-code coverage stayed at 50% and the quality gate stayed red.
Replace it with a surefire unit test: a non-HTTP URI makes
HttpRequest.newBuilder reject the scheme before any socket opens, so the
delegation line runs offline with no real network I/O.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 34891d6 commit 0958a9d
2 files changed
Lines changed: 23 additions & 15 deletions
File tree
- reader/src/test/java/io/github/dfa1/vortex/reader
Lines changed: 0 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | 64 | | |
80 | 65 | | |
81 | 66 | | |
| |||
Lines changed: 23 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
0 commit comments