Commit ec23701
committed
fix: Use classloader for loading test resources to ensure CI compatibility
The willReturnValidJsonWebKeys() method was using a relative file path
(src/test/resources/rsa_jwks.json) which works locally when the working
directory is the module folder, but fails in CI where the working directory
is the project root.
Changed to use classloader.getResourceAsStream() which works regardless
of the current working directory.
Also improved error handling to actually throw the exception instead of
silently ignoring it, which made debugging difficult.1 parent 23911a9 commit ec23701
1 file changed
Lines changed: 7 additions & 6 deletions
Lines changed: 7 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | 4 | | |
7 | 5 | | |
8 | 6 | | |
| |||
128 | 126 | | |
129 | 127 | | |
130 | 128 | | |
131 | | - | |
132 | | - | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
133 | 133 | | |
134 | | - | |
135 | | - | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
136 | 137 | | |
137 | 138 | | |
138 | 139 | | |
| |||
0 commit comments