From ecf7f2ae334d2981ad3f740df26d782b8b747817 Mon Sep 17 00:00:00 2001 From: "michele.artini" Date: Tue, 10 Dec 2024 12:27:04 +0100 Subject: [PATCH] moved to openaire-solr-payload-mapper 1.0.2 --- pom.xml | 10 ++-------- .../app/directindex/mapping/SolrRecordMapperTest.java | 5 +---- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/pom.xml b/pom.xml index 7b0e29b..bd0e49e 100644 --- a/pom.xml +++ b/pom.xml @@ -154,8 +154,8 @@ eu.dnetlib.dhp - dhp-schemas - ${dhp-schemas-version} + openaire-solr-payload-mapper + 1.0.2 io.swagger.core.v3 @@ -168,12 +168,6 @@ - - eu.dnetlib.dhp - openaire-solr-payload-mapper - 1.0.0 - - org.postgresql diff --git a/src/test/java/eu/dnetlib/app/directindex/mapping/SolrRecordMapperTest.java b/src/test/java/eu/dnetlib/app/directindex/mapping/SolrRecordMapperTest.java index 7ff0ae1..73619b0 100644 --- a/src/test/java/eu/dnetlib/app/directindex/mapping/SolrRecordMapperTest.java +++ b/src/test/java/eu/dnetlib/app/directindex/mapping/SolrRecordMapperTest.java @@ -10,7 +10,6 @@ import static org.mockito.Mockito.verify; import org.apache.commons.lang3.StringUtils; import org.apache.solr.common.SolrInputDocument; import org.junit.jupiter.api.BeforeEach; -import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; import org.mockito.Mock; @@ -29,7 +28,7 @@ import eu.dnetlib.app.directindex.input.ResultEntry; import eu.dnetlib.dhp.schema.solr.SolrRecord; import eu.dnetlib.dhp.solr.mapping.SolrInputDocumentMapper; -@Disabled +// @Disabled @ExtendWith(MockitoExtension.class) class SolrRecordMapperTest { @@ -159,8 +158,6 @@ class SolrRecordMapperTest { final SolrRecord solrRecord = solrRecordMapper.toSolrRecord(result); - // System.out.println(solrRecord.getLinks().get(0).getFunding().getLevel1()); - final String xml = XMLSolrSerializer.generateXML(solrRecord); final SolrInputDocument solrInputDocumentMapper = SolrInputDocumentMapper.map(solrRecord, xml);