A resource path resolves from the classpath root, with or without a leading slash

All 3 scenarios hold

Read as UTF-8; the loaded text is shown one file line per element. A leading slash makes no difference — both spellings of a root path are in the first row.

expected outcome broken scenario
ScenarioResource pathLines loaded from the file?
Path at the root
  • external.table
  • /external.table
  • Scenario | a | b | a + b?
  • Zero sum | 0 | 0 | 0
  • Zero right | 2 | 0 | 2
  • Two twos | 2 | 2 | 4
Path in a subfoldersubfolder/nested.table
  • Scenario | a | b | a - b?
  • Positive | 3 | 1 | 2
  • Negative | 1 | 3 | -2