Skip to content

Commit

Permalink
MET-5632 remove unused code and update unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
jeortizquan committed Jan 16, 2024
1 parent e69090c commit ab626e5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package eu.europeana.indexing.fullbean;

import eu.europeana.corelib.definitions.edm.entity.QualityAnnotation;
import eu.europeana.corelib.solr.entity.EuropeanaAggregationImpl;
import eu.europeana.metis.schema.jibx.EuropeanaAggregationType;
import eu.europeana.metis.schema.jibx.ResourceType;
Expand All @@ -17,12 +16,6 @@
final class EuropeanaAggregationFieldInput
implements Function<EuropeanaAggregationType, EuropeanaAggregationImpl> {

final List<? extends QualityAnnotation> qualityAnnotations;

public EuropeanaAggregationFieldInput(List<? extends QualityAnnotation> qualityAnnotations) {
this.qualityAnnotations = qualityAnnotations;
}

@Override
public EuropeanaAggregationImpl apply(EuropeanaAggregationType aggregation) {
EuropeanaAggregationImpl mongoAggregation = new EuropeanaAggregationImpl();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package eu.europeana.indexing.fullbean;

import static eu.europeana.indexing.fullbean.RdfToFullBeanConverter.convertList;
import static eu.europeana.indexing.fullbean.RdfToFullBeanConverter.getQualityAnnotations;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;

Expand All @@ -23,8 +21,7 @@ void apply() throws SerializationException {
final RdfConversionUtils conversionUtils = new RdfConversionUtils();
final RdfWrapper inputRdf = new RdfWrapper(conversionUtils.convertStringToRdf(
IndexingTestUtils.getResourceFileContent("europeana_record_rdf.xml")));
europeanaAggregationFieldInput = new EuropeanaAggregationFieldInput(
convertList(getQualityAnnotations(inputRdf), new QualityAnnotationFieldInput(), false));
europeanaAggregationFieldInput = new EuropeanaAggregationFieldInput();

List<EuropeanaAggregation> aggregationList = inputRdf.getEuropeanaAggregation().stream()
.map(a -> europeanaAggregationFieldInput.apply(a))
Expand Down

0 comments on commit ab626e5

Please sign in to comment.