moved to openaire-solr-payload-mapper 1.0.2

This commit is contained in:
Michele Artini 2024-12-10 12:27:04 +01:00
parent fe2e496e1f
commit ecf7f2ae33
2 changed files with 3 additions and 12 deletions

10
pom.xml
View File

@ -154,8 +154,8 @@
<!-- DHP SCHEMAS --> <!-- DHP SCHEMAS -->
<dependency> <dependency>
<groupId>eu.dnetlib.dhp</groupId> <groupId>eu.dnetlib.dhp</groupId>
<artifactId>dhp-schemas</artifactId> <artifactId>openaire-solr-payload-mapper</artifactId>
<version>${dhp-schemas-version}</version> <version>1.0.2</version>
<exclusions> <exclusions>
<exclusion> <exclusion>
<groupId>io.swagger.core.v3</groupId> <groupId>io.swagger.core.v3</groupId>
@ -168,12 +168,6 @@
</exclusions> </exclusions>
</dependency> </dependency>
<dependency>
<groupId>eu.dnetlib.dhp</groupId>
<artifactId>openaire-solr-payload-mapper</artifactId>
<version>1.0.0</version>
</dependency>
<!-- Postgres Driver --> <!-- Postgres Driver -->
<dependency> <dependency>
<groupId>org.postgresql</groupId> <groupId>org.postgresql</groupId>

View File

@ -10,7 +10,6 @@ import static org.mockito.Mockito.verify;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.apache.solr.common.SolrInputDocument; import org.apache.solr.common.SolrInputDocument;
import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith; import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.Mock; 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.schema.solr.SolrRecord;
import eu.dnetlib.dhp.solr.mapping.SolrInputDocumentMapper; import eu.dnetlib.dhp.solr.mapping.SolrInputDocumentMapper;
@Disabled // @Disabled
@ExtendWith(MockitoExtension.class) @ExtendWith(MockitoExtension.class)
class SolrRecordMapperTest { class SolrRecordMapperTest {
@ -159,8 +158,6 @@ class SolrRecordMapperTest {
final SolrRecord solrRecord = solrRecordMapper.toSolrRecord(result); final SolrRecord solrRecord = solrRecordMapper.toSolrRecord(result);
// System.out.println(solrRecord.getLinks().get(0).getFunding().getLevel1());
final String xml = XMLSolrSerializer.generateXML(solrRecord); final String xml = XMLSolrSerializer.generateXML(solrRecord);
final SolrInputDocument solrInputDocumentMapper = SolrInputDocumentMapper.map(solrRecord, xml); final SolrInputDocument solrInputDocumentMapper = SolrInputDocumentMapper.map(solrRecord, xml);