From 6d5c14e03060487af2a712aa4752081d5c599c1f Mon Sep 17 00:00:00 2001 From: miconis Date: Tue, 27 Apr 2021 09:47:49 +0200 Subject: [PATCH] assertions updated in entity merger test --- .../eu/dnetlib/dhp/oa/dedup/EntityMergerTest.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/dhp-workflows/dhp-dedup-openaire/src/test/java/eu/dnetlib/dhp/oa/dedup/EntityMergerTest.java b/dhp-workflows/dhp-dedup-openaire/src/test/java/eu/dnetlib/dhp/oa/dedup/EntityMergerTest.java index 787295c41..654ede498 100644 --- a/dhp-workflows/dhp-dedup-openaire/src/test/java/eu/dnetlib/dhp/oa/dedup/EntityMergerTest.java +++ b/dhp-workflows/dhp-dedup-openaire/src/test/java/eu/dnetlib/dhp/oa/dedup/EntityMergerTest.java @@ -64,7 +64,7 @@ public class EntityMergerTest implements Serializable { 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); // verify id - assertEquals("50|doi_dedup___::0968af610a356656706657e4f234b340", pub_merged.getId()); + assertEquals(dedupId, pub_merged.getId()); assertEquals(pub_top.getJournal(), pub_merged.getJournal()); assertEquals("OPEN", pub_merged.getBestaccessright().getClassid()); @@ -131,7 +131,7 @@ public class EntityMergerTest implements Serializable { .entityMerger(dedupId, publications2.iterator(), 0, dataInfo, Publication.class); // verify id - assertEquals("50|doi_dedup___::0ca46ff10b2b4c756191719d85302b14", pub_merged.getId()); + assertEquals(dedupId, pub_merged.getId()); assertEquals(27, pub_merged.getAuthor().size()); } @@ -143,7 +143,7 @@ public class EntityMergerTest implements Serializable { .entityMerger(dedupId, publications3.iterator(), 0, dataInfo, Publication.class); // verify id - assertEquals("50|doi_dedup___::0ca46ff10b2b4c756191719d85302b14", pub_merged.getId()); + assertEquals(dedupId, pub_merged.getId()); } @Test @@ -153,7 +153,7 @@ public class EntityMergerTest implements Serializable { .entityMerger(dedupId, publications4.iterator(), 0, dataInfo, Publication.class); // verify id - assertEquals("50|dedup_wf_001::0ca46ff10b2b4c756191719d85302b14", pub_merged.getId()); + assertEquals(dedupId, pub_merged.getId()); } @Test @@ -170,7 +170,7 @@ public class EntityMergerTest implements Serializable { .entityMerger(dedupId, publications5.iterator(), 0, dataInfo, Publication.class); // verify id - assertEquals("50|dedup_wf_001::0ca46ff10b2b4c756191719d85302b14", pub_merged.getId()); + assertEquals(dedupId, pub_merged.getId()); } public DataInfo setDI() {