Skip to content

Commit

Permalink
modified testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
ar-rana committed Jan 8, 2025
1 parent 06c771b commit 1512d7e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -373,8 +373,8 @@ Optional<BibEntry> getEntryFromPDFContent(String firstpageContents, String lineS

EntryType type = StandardEntryType.InProceedings;
if (curString.length() > 4) {
// special case: possibly conference as first line on the page
arXivId = getArXivId(null);
// special case: possibly conference as first line on the page
extractYear();
doi = getDoi(null);
if (curString.contains("Conference")) {
Expand All @@ -392,7 +392,7 @@ Optional<BibEntry> getEntryFromPDFContent(String firstpageContents, String lineS
}
}
}
// sometimes ArXiv ID is read before title

arXivId = getArXivId(arXivId);
// start: title
fillCurStringWithNonEmptyLines();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ void extractArXivFromPage1() {
.withField((StandardField.KEYWORDS), "Test Automation Artificial Intelligence AI-assisted Test Automation Grey Literature Automated Test Generation Self-Healing Test Scripts");

String firstPageContent = """
arXiv:2408.06224v1 [cs.SE] 12 Aug 2024
A Multi-Year Grey Literature Review on AI-assisted Test Automation
Filippo Riccaa, Alessandro Marchettob and Andrea Stoccoc
Expand All @@ -160,7 +159,9 @@ void extractArXivFromPage1() {
*Corresponding author
[email protected] (F. Ricca)
https://person.dibris.unige.it/ricca-filippo/ (F. Ricca)
ORCID(s): 0000-0002-3928-5408 (F. Ricca); 0000-0002-6833-896X (A. Marchetto); 0000-0001-8956-3894 (A. Stocco)""";
ORCID(s): 0000-0002-3928-5408 (F. Ricca); 0000-0002-6833-896X (A. Marchetto); 0000-0001-8956-3894 (A. Stocco)
arXiv:2408.06224v1 [cs.SE] 12 Aug 2024""";

assertEquals(Optional.of(entry), importer.getEntryFromPDFContent(firstPageContent, "\n", Optional.empty()));
}
Expand Down

0 comments on commit 1512d7e

Please sign in to comment.