1
0
Fork 0

assertions updated in entity merger test

This commit is contained in:
miconis 2021-04-27 09:47:49 +02:00
parent c25238480c
commit 6d5c14e030
1 changed files with 6 additions and 6 deletions

View File

@ -64,7 +64,7 @@ public class EntityMergerTest implements Serializable {
assertEquals("OPEN SOURCE", merged.getBestaccessright().getClassid()); assertEquals("OPEN SOURCE", merged.getBestaccessright().getClassid());
assertEquals("50|doi_dedup___::0968af610a356656706657e4f234b340", merged.getId()); assertEquals(dedupId, merged.getId());
} }
@ -75,7 +75,7 @@ public class EntityMergerTest implements Serializable {
.entityMerger(dedupId, publications.iterator(), 0, dataInfo, Publication.class); .entityMerger(dedupId, publications.iterator(), 0, dataInfo, Publication.class);
// verify id // verify id
assertEquals("50|doi_dedup___::0968af610a356656706657e4f234b340", pub_merged.getId()); assertEquals(dedupId, pub_merged.getId());
assertEquals(pub_top.getJournal(), pub_merged.getJournal()); assertEquals(pub_top.getJournal(), pub_merged.getJournal());
assertEquals("OPEN", pub_merged.getBestaccessright().getClassid()); assertEquals("OPEN", pub_merged.getBestaccessright().getClassid());
@ -131,7 +131,7 @@ public class EntityMergerTest implements Serializable {
.entityMerger(dedupId, publications2.iterator(), 0, dataInfo, Publication.class); .entityMerger(dedupId, publications2.iterator(), 0, dataInfo, Publication.class);
// verify id // verify id
assertEquals("50|doi_dedup___::0ca46ff10b2b4c756191719d85302b14", pub_merged.getId()); assertEquals(dedupId, pub_merged.getId());
assertEquals(27, pub_merged.getAuthor().size()); assertEquals(27, pub_merged.getAuthor().size());
} }
@ -143,7 +143,7 @@ public class EntityMergerTest implements Serializable {
.entityMerger(dedupId, publications3.iterator(), 0, dataInfo, Publication.class); .entityMerger(dedupId, publications3.iterator(), 0, dataInfo, Publication.class);
// verify id // verify id
assertEquals("50|doi_dedup___::0ca46ff10b2b4c756191719d85302b14", pub_merged.getId()); assertEquals(dedupId, pub_merged.getId());
} }
@Test @Test
@ -153,7 +153,7 @@ public class EntityMergerTest implements Serializable {
.entityMerger(dedupId, publications4.iterator(), 0, dataInfo, Publication.class); .entityMerger(dedupId, publications4.iterator(), 0, dataInfo, Publication.class);
// verify id // verify id
assertEquals("50|dedup_wf_001::0ca46ff10b2b4c756191719d85302b14", pub_merged.getId()); assertEquals(dedupId, pub_merged.getId());
} }
@Test @Test
@ -170,7 +170,7 @@ public class EntityMergerTest implements Serializable {
.entityMerger(dedupId, publications5.iterator(), 0, dataInfo, Publication.class); .entityMerger(dedupId, publications5.iterator(), 0, dataInfo, Publication.class);
// verify id // verify id
assertEquals("50|dedup_wf_001::0ca46ff10b2b4c756191719d85302b14", pub_merged.getId()); assertEquals(dedupId, pub_merged.getId());
} }
public DataInfo setDI() { public DataInfo setDI() {