1
0
Fork 0

refactoring

This commit is contained in:
Miriam Baglioni 2021-08-11 17:44:07 +02:00
parent 95e5482bbb
commit 785db1d5b2
1 changed files with 6 additions and 1 deletions

View File

@ -33,10 +33,15 @@ public class TestReadCSV {
Assertions.assertEquals(36, beans.size()); Assertions.assertEquals(36, beans.size());
Assertions.assertEquals(1, beans.stream().filter(e -> e.getIssn().equals("0001-625X")).count()); Assertions.assertEquals(1, beans.stream().filter(e -> e.getIssn().equals("0001-625X")).count());
Assertions.assertTrue(beans.stream().anyMatch(e -> e.getIssn().equals("0001-625X") && e.getTitle().equals("Acta Mycologica"))); Assertions
.assertTrue(
beans
.stream()
.anyMatch(e -> e.getIssn().equals("0001-625X") && e.getTitle().equals("Acta Mycologica")));
Assertions.assertTrue(beans.stream().allMatch(e -> e.getIssn().equals(e.getIssn_l()))); Assertions.assertTrue(beans.stream().allMatch(e -> e.getIssn().equals(e.getIssn_l())));
} }
@Disabled @Disabled
@Test @Test
public void testCSVUrlUnibi() throws IOException { public void testCSVUrlUnibi() throws IOException {