Commit a6b13a3
committed
[JUnit Platform] Fix UniqueId resolution
A unique id of any feature element is prefixed by the unique
id of the engine. This prefix, and only this prefix should be
skipped. Simply finding the first feature segment is not correct.
In practice, because we check if the unique id we try to resolve
is prefixed by the engine descriptor, everything does work out
fine. But this should help against malformed ids.1 parent 0e99b18 commit a6b13a3
File tree
1 file changed
+7
-3
lines changed- cucumber-junit-platform-engine/src/main/java/io/cucumber/junit/platform/engine
1 file changed
+7
-3
lines changedLines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
| 217 | + | |
| 218 | + | |
217 | 219 | | |
218 | 220 | | |
| 221 | + | |
| 222 | + | |
219 | 223 | | |
220 | 224 | | |
221 | 225 | | |
222 | | - | |
223 | | - | |
| 226 | + | |
| 227 | + | |
224 | 228 | | |
225 | 229 | | |
226 | | - | |
| 230 | + | |
227 | 231 | | |
228 | 232 | | |
229 | 233 | | |
| |||
0 commit comments