From 4642e77a0cc1d58e7f173d87aa8ffac1183fd57f Mon Sep 17 00:00:00 2001 From: Alessia Bardi Date: Mon, 21 Nov 2022 20:46:27 +0100 Subject: [PATCH] test for ADS 276 --- .../GraphDbReaderAndESIndexTest.java | 25 +++++++++++++------ 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/dnet-ariadneplus-graphdb-publisher/test/java/eu/dnetlib/ariadneplus/GraphDbReaderAndESIndexTest.java b/dnet-ariadneplus-graphdb-publisher/test/java/eu/dnetlib/ariadneplus/GraphDbReaderAndESIndexTest.java index 1703c8e..a5d1083 100644 --- a/dnet-ariadneplus-graphdb-publisher/test/java/eu/dnetlib/ariadneplus/GraphDbReaderAndESIndexTest.java +++ b/dnet-ariadneplus-graphdb-publisher/test/java/eu/dnetlib/ariadneplus/GraphDbReaderAndESIndexTest.java @@ -41,9 +41,23 @@ public class GraphDbReaderAndESIndexTest { String datasource = "ads"; String apiId = "1093"; readAndIndexTest(false, coll, datasource, apiId); - readAndIndexTest(false, record1, datasource, apiId); - readAndIndexTest(false, record2, datasource, apiId); - readAndIndexTest(false, record3, datasource, apiId); + readAndIndexTest(true, record1, datasource, apiId); + readAndIndexTest(true, record2, datasource, apiId); + readAndIndexTest(true, record3, datasource, apiId); + } + + @Test + public void testADS276() throws Exception { + String coll ="https://ariadne-infrastructure.eu/aocat/Collection/ADS/B1E1FD6B-42C6-35B6-82E8-06E0082CCC71"; + String record1 ="https://ariadne-infrastructure.eu/aocat/Resource/HERoNI/FB819062-C53C-3164-9A42-AEA6FD127575"; + String record2 ="https://ariadne-infrastructure.eu/aocat/Resource/HERoNI/C460E0A9-F064-3B9D-8905-00CF08E4772D"; + String record3 ="https://ariadne-infrastructure.eu/aocat/Resource/HERoNI/E13FAB63-4870-3C91-9138-21E0E3999F54"; + String datasource = "ads"; + String apiId = "276"; + readAndIndexTest(false, coll, datasource, apiId); + readAndIndexTest(true, record1, datasource, apiId); + readAndIndexTest(true, record2, datasource, apiId); + readAndIndexTest(true, record3, datasource, apiId); } @Test @@ -63,11 +77,6 @@ public class GraphDbReaderAndESIndexTest { } - - - - - @Test public void testADS() throws Exception { String id = "https://ariadne-infrastructure.eu/aocat/Resource/ADS/90D1C95D-E249-3E74-92D9-B58FDF690CC7";