forked from D-Net/dnet-hadoop
Change the test for author merger
This commit is contained in:
parent
2aaa63dfa2
commit
42cd19f5ea
|
@ -522,12 +522,24 @@ public class DoiBoostAuthorMergerTest {
|
|||
|
||||
Assertions.assertEquals(3, merge.stream().filter(a -> a.getPid() != null).count());
|
||||
|
||||
merge.stream().filter(a -> a.getPid() != null)
|
||||
.forEach(a -> Assertions.assertTrue(a.getPid().stream().allMatch(p -> p.getQualifier().getClassid().equals("orcid"))));
|
||||
|
||||
Assertions.assertEquals("0000-0002-4333-2748", merge.stream().filter(a -> a.getSurname().equalsIgnoreCase("o'neill")).collect(Collectors.toList()).get(0).getPid().get(0).getValue());
|
||||
|
||||
merge
|
||||
.stream()
|
||||
.filter(a -> a.getPid() != null)
|
||||
.forEach(
|
||||
a -> Assertions
|
||||
.assertTrue(a.getPid().stream().allMatch(p -> p.getQualifier().getClassid().equals("orcid"))));
|
||||
|
||||
Assertions
|
||||
.assertEquals(
|
||||
"0000-0002-4333-2748",
|
||||
merge
|
||||
.stream()
|
||||
.filter(a -> a.getSurname().equalsIgnoreCase("o'neill"))
|
||||
.collect(Collectors.toList())
|
||||
.get(0)
|
||||
.getPid()
|
||||
.get(0)
|
||||
.getValue());
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue