Skip to content

Commit

Permalink
Update journal loading IT for new test data
Browse files Browse the repository at this point in the history
  • Loading branch information
markpatton committed Jan 19, 2024
1 parent c025bb4 commit b7d4e12
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,23 +63,23 @@ public void loadFromFileTest(WireMockRuntimeInfo wmRuntimeInfo) throws Exception
Main.main(new String[] {});

// We expect three journals, but no PMC A journals
assertEquals(3, listJournals().size());
assertEquals(4, listJournals().size());
assertEquals(0, typeA(listJournals()).size());

System.setProperty("medline", "");
System.setProperty("pmc", "http://localhost:" + wmPort + "/pmc/front-page/NIH_PA_journal_list-1.csv");
Main.main(new String[] {});

// We still expect three journals in the repository, but now two are PMC A
assertEquals(3, listJournals().size());
assertEquals(4, listJournals().size());
assertEquals(2, typeA(listJournals()).size());

System.setProperty("medline", "");
System.setProperty("pmc", "http://localhost:" + wmPort + "/pmc/front-page/NIH_PA_journal_list-2.csv");
Main.main(new String[] {});

// The last dataset removed a type A journal, so now we expect only one
assertEquals(3, listJournals().size());
assertEquals(4, listJournals().size());
assertEquals(1, typeA(listJournals()).size());
}

Expand Down

0 comments on commit b7d4e12

Please sign in to comment.