Skip to content

Commit

Permalink
Rewrite user test cases properly
Browse files Browse the repository at this point in the history
  • Loading branch information
dkokkotas committed Jun 11, 2023
1 parent 757a024 commit e5fb3d8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/test/java/org/jabref/logic/cleanup/URLCleanupTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ private static Stream<Arguments> provideURL() {
.withField(StandardField.URLDATE,
"2021-01-15"),
new BibEntry().withField(StandardField.NOTE,
"\\url{http://142.42.1.1:8080}, Accessed on January 15, 2021")),
"\\url{http://142.42.1.1:8080}, accessed on January 15, 2021")),

// Input entry doesn't hold any URL in the Note field.
Arguments.of(
Expand All @@ -146,9 +146,9 @@ private static Stream<Arguments> provideURL() {
.withField(StandardField.URLDATE,
"2021-01-15")
.withField(StandardField.NOTE,
"Visited on February 12, 2017"),
"visited on February 12, 2017"),
new BibEntry().withField(StandardField.NOTE,
"\\url{http://142.42.1.1:8080}, Accessed on January 15, 2021, Visited on February 12, 2017")),
"\\url{http://142.42.1.1:8080}, accessed on January 15, 2021, visited on February 12, 2017")),

// Input entry holds the same url-date in both Note and Urldate field.
Arguments.of(
Expand All @@ -157,7 +157,7 @@ private static Stream<Arguments> provideURL() {
.withField(StandardField.URLDATE,
"2015-01-15"),
new BibEntry().withField(StandardField.NOTE,
"\\url{http://142.42.1.1:8080}, Visited on 2015.01.15")
"\\url{http://142.42.1.1:8080}, visited on 2015.01.15")
.withField(StandardField.URLDATE,
"2015-01-15")),

Expand All @@ -170,7 +170,7 @@ private static Stream<Arguments> provideURL() {
.withField(StandardField.NOTE,
"cited by Kramer"),
new BibEntry().withField(StandardField.NOTE,
"\\url{https://example.org}, cited by Kramer, Accessed on 2023-04-11"))
"\\url{https://example.org}, cited by Kramer, accessed on 2023-04-11"))
);
}
}

0 comments on commit e5fb3d8

Please sign in to comment.