Browse Source

Refactored the capitalisation

Andrew Grant 5 months ago
parent
commit
ed7f11f138

+ 1 - 1
src/main/java/scot/carricksoftware/grants/controllers/places/organisations/OrganisationFormControllerImpl.java

@@ -20,7 +20,7 @@ import scot.carricksoftware.grants.commands.places.organisations.OrganisationCom
 import scot.carricksoftware.grants.constants.AttributeConstants;
 import scot.carricksoftware.grants.constants.MappingConstants;
 import scot.carricksoftware.grants.constants.ViewConstants;
-import scot.carricksoftware.grants.converters.Capitalisation;
+import scot.carricksoftware.grants.converters.capitalisation.Capitalisation;
 import scot.carricksoftware.grants.converters.places.organisations.OrganisationCommandConverter;
 import scot.carricksoftware.grants.converters.places.organisations.OrganisationConverter;
 import scot.carricksoftware.grants.services.places.organisations.OrganisationService;

+ 0 - 10
src/main/java/scot/carricksoftware/grants/converters/Capitalisation.java

@@ -1,10 +0,0 @@
-/*
- * Copyright (c) Andrew Grant of Carrick Software 11/03/2025, 23:46. All rights reserved.
- *
- */
-
-package scot.carricksoftware.grants.converters;
-
-public interface Capitalisation {
-    String getCapitalisation(@SuppressWarnings("unused") String input);
-}

+ 10 - 0
src/main/java/scot/carricksoftware/grants/converters/capitalisation/Capitalisation.java

@@ -0,0 +1,10 @@
+/*
+ * Copyright (c) 2025.  Andrew Grant Carrick Software. All rights reserved
+ *
+ */
+
+package scot.carricksoftware.grants.converters.capitalisation;
+
+public interface Capitalisation {
+    String getCapitalisation(@SuppressWarnings("unused") String input);
+}

+ 2 - 2
src/main/java/scot/carricksoftware/grants/converters/CapitalisationImpl.java → src/main/java/scot/carricksoftware/grants/converters/capitalisation/CapitalisationImpl.java

@@ -1,9 +1,9 @@
 /*
- * Copyright (c) Andrew Grant of Carrick Software 11/03/2025, 23:47. All rights reserved.
+ * Copyright (c) 2025.  Andrew Grant Carrick Software. All rights reserved
  *
  */
 
-package scot.carricksoftware.grants.converters;
+package scot.carricksoftware.grants.converters.capitalisation;
 
 import org.apache.logging.log4j.LogManager;
 import org.apache.logging.log4j.Logger;

+ 1 - 1
src/test/java/scot/carricksoftware/grants/controllers/places/organisations/OrganisationFormControllerCleansingTest.java

@@ -14,7 +14,7 @@ import org.mockito.junit.jupiter.MockitoExtension;
 import org.springframework.ui.Model;
 import org.springframework.validation.BindingResult;
 import scot.carricksoftware.grants.commands.places.organisations.OrganisationCommand;
-import scot.carricksoftware.grants.converters.CapitalisationImpl;
+import scot.carricksoftware.grants.converters.capitalisation.CapitalisationImpl;
 import scot.carricksoftware.grants.converters.places.organisations.OrganisationCommandConverterImpl;
 import scot.carricksoftware.grants.converters.places.organisations.OrganisationConverterImpl;
 import scot.carricksoftware.grants.services.places.organisations.OrganisationService;

+ 1 - 1
src/test/java/scot/carricksoftware/grants/controllers/places/organisations/OrganisationFormControllerSaveOrUpdateTest.java

@@ -14,7 +14,7 @@ import org.springframework.ui.Model;
 import org.springframework.validation.BindingResult;
 import scot.carricksoftware.grants.commands.places.organisations.OrganisationCommand;
 import scot.carricksoftware.grants.commands.places.organisations.OrganisationCommandImpl;
-import scot.carricksoftware.grants.converters.Capitalisation;
+import scot.carricksoftware.grants.converters.capitalisation.Capitalisation;
 import scot.carricksoftware.grants.converters.places.organisations.OrganisationCommandConverterImpl;
 import scot.carricksoftware.grants.converters.places.organisations.OrganisationConverterImpl;
 import scot.carricksoftware.grants.services.places.organisations.OrganisationService;

+ 1 - 1
src/test/java/scot/carricksoftware/grants/controllers/places/organisations/OrganisationFormControllerTest.java

@@ -15,7 +15,7 @@ import org.mockito.junit.jupiter.MockitoExtension;
 import org.springframework.ui.Model;
 import scot.carricksoftware.grants.commands.places.organisations.OrganisationCommand;
 import scot.carricksoftware.grants.constants.AttributeConstants;
-import scot.carricksoftware.grants.converters.Capitalisation;
+import scot.carricksoftware.grants.converters.capitalisation.Capitalisation;
 import scot.carricksoftware.grants.converters.places.organisations.OrganisationCommandConverterImpl;
 import scot.carricksoftware.grants.converters.places.organisations.OrganisationConverterImpl;
 import scot.carricksoftware.grants.domains.places.Organisation;

+ 2 - 2
src/test/java/scot/carricksoftware/grants/converters/CapitalisationLengthTest.java → src/test/java/scot/carricksoftware/grants/converters/capitalisation/CapitalisationLengthTest.java

@@ -1,9 +1,9 @@
 /*
- * Copyright (c) Andrew Grant of Carrick Software 11/03/2025, 23:58. All rights reserved.
+ * Copyright (c) 2025.  Andrew Grant Carrick Software. All rights reserved
  *
  */
 
-package scot.carricksoftware.grants.converters;
+package scot.carricksoftware.grants.converters.capitalisation;
 
 
 import org.junit.jupiter.api.BeforeEach;

+ 2 - 2
src/test/java/scot/carricksoftware/grants/converters/CapitalisationTest.java → src/test/java/scot/carricksoftware/grants/converters/capitalisation/CapitalisationTest.java

@@ -1,9 +1,9 @@
 /*
- * Copyright (c) Andrew Grant of Carrick Software 11/03/2025, 23:55. All rights reserved.
+ * Copyright (c) 2025.  Andrew Grant Carrick Software. All rights reserved
  *
  */
 
-package scot.carricksoftware.grants.converters;
+package scot.carricksoftware.grants.converters.capitalisation;
 
 
 import org.junit.jupiter.api.BeforeEach;