From 5936126574878881a811baa06605e817631b487f Mon Sep 17 00:00:00 2001 From: askhat-abishev <150008941+askhat-abishev@users.noreply.github.com> Date: Mon, 25 Nov 2024 15:04:12 +0500 Subject: [PATCH 1/2] MODLD-599: LCCN validation configuration (#51) --- ...DataApplication [Local-Standalone].run.xml | 2 +- README.md | 1 + descriptors/ModuleDescriptor-template.json | 15 ++- pom.xml | 6 + .../linked/data/LinkedDataApplication.java | 2 + .../folio/linked/data/client/SpecClient.java | 24 ++++ .../linked/data/job/CacheCleaningJob.java | 19 ++++ .../org/folio/linked/data/util/Constants.java | 4 + .../validation/dto/LccnPatternValidator.java | 19 +++- .../data/validation/spec/SpecProvider.java | 9 ++ .../spec/impl/SpecProviderImpl.java | 46 ++++++++ src/main/resources/application.yml | 3 + .../resource/ResourceControllerITBase.java | 36 ++++++ .../dto/LccnPatternValidatorTest.java | 105 +++++++++++------- .../spec/impl/SpecProviderImplTest.java | 58 ++++++++++ 15 files changed, 305 insertions(+), 44 deletions(-) create mode 100644 src/main/java/org/folio/linked/data/client/SpecClient.java create mode 100644 src/main/java/org/folio/linked/data/job/CacheCleaningJob.java create mode 100644 src/main/java/org/folio/linked/data/validation/spec/SpecProvider.java create mode 100644 src/main/java/org/folio/linked/data/validation/spec/impl/SpecProviderImpl.java create mode 100644 src/test/java/org/folio/linked/data/validation/spec/impl/SpecProviderImplTest.java diff --git a/.run/LinkedDataApplication [Local-Standalone].run.xml b/.run/LinkedDataApplication [Local-Standalone].run.xml index a1699103..b07b7131 100644 --- a/.run/LinkedDataApplication [Local-Standalone].run.xml +++ b/.run/LinkedDataApplication [Local-Standalone].run.xml @@ -13,4 +13,4 @@