Source:
<code>public void affiliationMatchingJob() throws IOException { String jsonInputOrgPath = StaticResourceProvider .getResourcePath("data/input/organizations.json"); String jsonInputAffPath = StaticResourceProvider .getResourcePath("data/input/affiliations.json"); String jsonInputInferredDocProjPath = StaticResourceProvider .getResourcePath("data/input/docProjInferred.json"); String jsonInputDocProjPath = StaticResourceProvider .getResourcePath("data/input/docProj.json"); String jsonInputProjOrgPath = StaticResourceProvider .getResourcePath("data/input/projOrg.json"); String jsonOutputPath = StaticResourceProvider .getResourcePath("data/expectedOutput/matchedOrganizations.json"); <START> String jsonOutputReportPath = StaticResourceProvider <END> .getResourcePath("data/expectedOutput/report.json"); AvroTestUtils.createLocalAvroDataStore( JsonAvroTestUtils.readJsonDataStore(jsonInputOrgPath, Organization.class), inputOrgDirPath); AvroTestUtils.createLocalAvroDataStore( JsonAvroTestUtils.readJsonDataStore(jsonInputAffPath, ExtractedDocumentMetadata.class), inputAffDirPath); AvroTestUtils.createLocalAvroDataStore( JsonAvroTestUtils.readJsonDataStore(jsonInputInferredDocProjPath, DocumentToProject.class), inputInferredDocProjDirPath); AvroTestUtils.createLocalAvroDataStore( JsonAvroTestUtils.readJsonDataStore(jsonInputDocProjPath, eu.dnetlib.iis.importer.schemas.DocumentToProject.class), inputDocProjDirPath); AvroTestUtils.createLocalAvroDataStore( JsonAvroTestUtils.readJsonDataStore(jsonInputProjOrgPath, ProjectToOrganization.class), inputProjOrgDirPath); executeJobAndAssert(jsonOutputPath, jsonOutputReportPath); }</code><technical_language>remark related changes relative project paths replaced classpaths: is drawback of replacement this widens scope for picking resources need careful packages naming prevent potential overlaps difficult debug. this is a generic note for avoid e.g. data/input.json test resource path, more explainable bound usage context. a common pattern, I guess do put test-scoped dependency in maven (iis-common is commonly imported one), need aware of this unobvious side effect</technical_language>

Target:
public void affiliationMatchingJob() throws IOException { String jsonInputOrgPath = ClassPathResourceProvider .getResourcePath("data/input/organizations.json"); String jsonInputAffPath = ClassPathResourceProvider .getResourcePath("data/input/affiliations.json"); String jsonInputInferredDocProjPath = ClassPathResourceProvider .getResourcePath("data/input/docProjInferred.json"); String jsonInputDocProjPath = ClassPathResourceProvider .getResourcePath("data/input/docProj.json"); String jsonInputProjOrgPath = ClassPathResourceProvider .getResourcePath("data/input/projOrg.json"); String jsonOutputPath = ClassPathResourceProvider .getResourcePath("data/expectedOutput/matchedOrganizations.json"); String jsonOutputReportPath = ClassPathResourceProvider .getResourcePath("data/expectedOutput/report.json"); AvroTestUtils.createLocalAvroDataStore( JsonAvroTestUtils.readJsonDataStore(jsonInputOrgPath, Organization.class), inputOrgDirPath); AvroTestUtils.createLocalAvroDataStore( JsonAvroTestUtils.readJsonDataStore(jsonInputAffPath, ExtractedDocumentMetadata.class), inputAffDirPath); AvroTestUtils.createLocalAvroDataStore( JsonAvroTestUtils.readJsonDataStore(jsonInputInferredDocProjPath, DocumentToProject.class), inputInferredDocProjDirPath); AvroTestUtils.createLocalAvroDataStore( JsonAvroTestUtils.readJsonDataStore(jsonInputDocProjPath, eu.dnetlib.iis.importer.schemas.DocumentToProject.class), inputDocProjDirPath); AvroTestUtils.createLocalAvroDataStore( JsonAvroTestUtils.readJsonDataStore(jsonInputProjOrgPath, ProjectToOrganization.class), inputProjOrgDirPath); executeJobAndAssert(jsonOutputPath, jsonOutputReportPath); }