From 09fbbbd98dda8d923866c0274be68efdeb40513d Mon Sep 17 00:00:00 2001 From: Sam Leeflang Date: Wed, 3 Jul 2024 10:52:01 +0200 Subject: [PATCH] Make test utils final --- .../eu/dissco/core/translator/TestUtils.java | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/test/java/eu/dissco/core/translator/TestUtils.java b/src/test/java/eu/dissco/core/translator/TestUtils.java index 5a178d3..aa48be9 100644 --- a/src/test/java/eu/dissco/core/translator/TestUtils.java +++ b/src/test/java/eu/dissco/core/translator/TestUtils.java @@ -13,28 +13,28 @@ public class TestUtils { - public static ObjectMapper MAPPER = new ObjectMapper().findAndRegisterModules(); - public static String SOURCE_SYSTEM_ID = "20.5000.1025/GW0-TYL-YRU"; - public static String ENDPOINT = "https://data.rbge.org.uk/service/dwca/data/darwin_core_living.zip"; + public static final ObjectMapper MAPPER = new ObjectMapper().findAndRegisterModules(); + public static final String SOURCE_SYSTEM_ID = "20.5000.1025/GW0-TYL-YRU"; + public static final String ENDPOINT = "https://data.rbge.org.uk/service/dwca/data/darwin_core_living.zip"; - public static String ORGANISATION_ID = "https://ror.org/02y22ws83"; - public static String NORMALISED_PHYSICAL_SPECIMEN_ID = "http://coldb.mnhn.fr/catalognumber/mnhn/ec/ec10867"; + public static final String ORGANISATION_ID = "https://ror.org/02y22ws83"; + public static final String NORMALISED_PHYSICAL_SPECIMEN_ID = "http://coldb.mnhn.fr/catalognumber/mnhn/ec/ec10867"; - public static UUID JOB_ID = UUID.fromString("4a9be957-b8f6-4467-a98e-d19cbd2fa6ec"); + public static final UUID JOB_ID = UUID.fromString("4a9be957-b8f6-4467-a98e-d19cbd2fa6ec"); - public static String MOCK_DATE = "29-09-2023"; - public static Map DEFAULT_MAPPING = Map.of( + public static final String MOCK_DATE = "29-09-2023"; + public static final Map DEFAULT_MAPPING = Map.of( "ods:physicalSpecimenIdType", "cetaf", "ods:type", "ZoologyVertebrateSpecimen", "ods:organisationId", ORGANISATION_ID ); - public static Map TERM_MAPPING = Map.of( + public static final Map TERM_MAPPING = Map.of( "ods:physicalSpecimenID", "dwc:occurrenceID", "ods:specimenName", "dwc:scientificName", "ods:physicalSpecimenCollection", "dwc:collectionID", "ods:datasetId", "dwc:datasetID" ); - public static String MAPPING_JSON = """ + public static final String MAPPING_JSON = """ { "mapping": [ {