- assertj core version: 3.27.3
- java version: 17
- test framework version: junit-jupiter
- os (if relevant): Windows
AbstractPathAssert#endsWith throws NoSuchFileException on non existing file. This behaviour is unexpected between endsWith and endsWithRaw.
Path actual = Path.of("somewhere/over/the/rainbow");
Path tail = Path.of("rainbow");
@Test
void successful() {
assertThat(actual).endsWithRaw(tail);
}
@Test
void fails() {
assertThat(actual).endsWith(tail);
}
I can contribute a bugfix 👍!
AbstractPathAssert#endsWith throws NoSuchFileException on non existing file. This behaviour is unexpected between endsWith and endsWithRaw.
I can contribute a bugfix 👍!