Skip to content

Commit 6fe72a7

Browse files
committed
realigned CsvSource
1 parent 8edad2a commit 6fe72a7

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

jablib/src/test/java/org/jabref/logic/util/io/FileUtilTest.java

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -230,21 +230,21 @@ void getFileNameWithMultipleDotsString() {
230230

231231
@ParameterizedTest
232232
@CsvSource(textBlock = """
233-
test.file, www.example.com/test.file
234-
test.file, http://www.example.com/test.file
235-
test.file, https://www.example.com/test.file
236-
test.file, www.example.com/path/to/test.file
237-
test.file, http://www.example.com/path/to/test.file
238-
test.file, https://www.example.com/path/to/test.file
239-
test.file, https://www.example.com/not\\a\\windows\\path/test.file
240-
test.file, https://www.example.com////test.file
241-
blank, https://www.example.com/path/to/blank
242-
blank, https://www.example.com/not\\a\\windows\\path/blank
243-
not\\a\\windows.file, https://www.example.com/path/to/not\\a\\windows.file
244-
test.file, https://www.example.com/path/to/file.pdf?field=value
245-
test.file, https://www.example.com/path/to/file.pdf?a=1&b=2
246-
test.file, https://www.example.com/path/to/file.pdf?search=for+a+file
247-
blank, https://www.example.com/path/to/blank?search=for+a+file
233+
test.file, www.example.com/test.file
234+
test.file, http://www.example.com/test.file
235+
test.file, https://www.example.com/test.file
236+
test.file, www.example.com/path/to/test.file
237+
test.file, http://www.example.com/path/to/test.file
238+
test.file, https://www.example.com/path/to/test.file
239+
test.file, https://www.example.com/not\\a\\windows\\path/test.file
240+
test.file, https://www.example.com////test.file
241+
blank, https://www.example.com/path/to/blank
242+
blank, https://www.example.com/not\\a\\windows\\path/blank
243+
not\\a\\windows.file, https://www.example.com/path/to/not\\a\\windows.file
244+
test.file, https://www.example.com/path/to/file.pdf?field=value
245+
test.file, https://www.example.com/path/to/file.pdf?a=1&b=2
246+
test.file, https://www.example.com/path/to/file.pdf?search=for+a+file
247+
blank, https://www.example.com/path/to/blank?search=for+a+file
248248
""")
249249
void getFileNameFromUrlsCorrectly(String file, String url) {
250250
assertEquals(file, FileUtil.getFileNameFromUrl(url).orElse("file.pdf"), "from '" + url + "'");

0 commit comments

Comments
 (0)