void () { assertThat(FileUtil.getRelativePath("/dir/subdir1/", "/dir/subdir2/file.txt", '/', true)).isEqualTo("../subdir2/file.txt"); assertThat(FileUtil.getRelativePath("/dir/subdir1/", "/dir/subdir2/", '/', true)).isEqualTo("../subdir2/"); assertThat(FileUtil.getRelativePath("/dir/subdir1/", "/dir/subdir2", '/', true)).isEqualTo("../subdir2"); assertThat(FileUtil.getRelativePath("/dir/subdir/", "/dir/subdir/file.txt", '/', true)).isEqualTo("file.txt"); assertThat(FileUtil.getRelativePath("/dir/subdir", "/dir/subdir/file.txt", '/', true)).isEqualTo("file.txt"); assertThat(FileUtil.getRelativePath("/dir/subdir/file.txt", "/dir/subdir/", '/', true)).isEqualTo("../"); assertThat(FileUtil.getRelativePath("/dir/subdir/file.txt", "/dir/subdir", '/', true)).isEqualTo("../../subdir"); assertThat(FileUtil.getRelativePath("/dir/subdir", "/dir/subdir/", '/', true)).isEqualTo("."); assertThat(FileUtil.getRelativePath("/dir/subdir/", "/dir/subdir", '/', true)).isEqualTo("."); assertThat(FileUtil.getRelativePath("/dir/subdir/", "/dir/subdir/", '/', true)).isEqualTo("."); assertThat(FileUtil.getRelativePath("/dir/subdir", "/dir/subdir", '/', true)).isEqualTo("."); }