From b8d9c6f47ed6d78a93813e70369c5f17eaa9f5c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edd=C3=BA=20Mel=C3=A9ndez?= Date: Sun, 30 Jul 2023 21:10:57 -0600 Subject: [PATCH 1/2] Fix testcontainers module location in HELP.md This commit applies the new location for Testcontainers module. See gh-1263 --- .../testcontainers/TestcontainersModuleRegistry.java | 2 +- ...pringIntegrationProjectGenerationConfigurationTests.java | 2 +- .../TestcontainersProjectGenerationConfigurationTests.java | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/start-site/src/main/java/io/spring/start/site/extension/dependency/testcontainers/TestcontainersModuleRegistry.java b/start-site/src/main/java/io/spring/start/site/extension/dependency/testcontainers/TestcontainersModuleRegistry.java index 43749a58870..4f231ed0efb 100644 --- a/start-site/src/main/java/io/spring/start/site/extension/dependency/testcontainers/TestcontainersModuleRegistry.java +++ b/start-site/src/main/java/io/spring/start/site/extension/dependency/testcontainers/TestcontainersModuleRegistry.java @@ -93,7 +93,7 @@ private static Consumer addModule(String id) { private static Consumer addReferenceLink(String name, String modulePath) { return (helpDocument) -> { - String href = String.format("https://www.testcontainers.org/modules/%s", modulePath); + String href = String.format("https://java.testcontainers.org/modules/%s", modulePath); String description = String.format("Testcontainers %s Reference Guide", name); helpDocument.gettingStarted().addReferenceDocLink(href, description); }; diff --git a/start-site/src/test/java/io/spring/start/site/extension/dependency/springintegration/SpringIntegrationProjectGenerationConfigurationTests.java b/start-site/src/test/java/io/spring/start/site/extension/dependency/springintegration/SpringIntegrationProjectGenerationConfigurationTests.java index ea2193d2e7d..08fcd72808b 100644 --- a/start-site/src/test/java/io/spring/start/site/extension/dependency/springintegration/SpringIntegrationProjectGenerationConfigurationTests.java +++ b/start-site/src/test/java/io/spring/start/site/extension/dependency/springintegration/SpringIntegrationProjectGenerationConfigurationTests.java @@ -101,7 +101,7 @@ static Stream referenceLinks() { @Test void linkToSupportedEntriesWhenTwoMatchesArePresentOnlyAddLinkOnce() { assertHelpDocument("testcontainers", "data-mongodb", "data-mongodb-reactive") - .containsOnlyOnce("https://www.testcontainers.org/modules/databases/mongodb/"); + .containsOnlyOnce("https://java.testcontainers.org/modules/databases/mongodb/"); } private static Dependency integrationDependency(String id) { diff --git a/start-site/src/test/java/io/spring/start/site/extension/dependency/testcontainers/TestcontainersProjectGenerationConfigurationTests.java b/start-site/src/test/java/io/spring/start/site/extension/dependency/testcontainers/TestcontainersProjectGenerationConfigurationTests.java index f233a2d6e7c..c745b568add 100644 --- a/start-site/src/test/java/io/spring/start/site/extension/dependency/testcontainers/TestcontainersProjectGenerationConfigurationTests.java +++ b/start-site/src/test/java/io/spring/start/site/extension/dependency/testcontainers/TestcontainersProjectGenerationConfigurationTests.java @@ -77,13 +77,13 @@ static Stream supportedEntriesBuild() { @MethodSource("supportedEntriesHelpDocument") void linkToSupportedEntriesWhenTestContainerIsPresentIsAdded(String dependencyId, String docHref) { assertHelpDocument("3.0.0", "testcontainers", dependencyId) - .contains("https://www.testcontainers.org/modules/" + docHref); + .contains("https://java.testcontainers.org/modules/" + docHref); } @ParameterizedTest @MethodSource("supportedEntriesHelpDocument") void linkToSupportedEntriesWhenTestContainerIsNotPresentIsNotAdded(String dependencyId, String docHref) { - assertHelpDocument("3.0.0", dependencyId).doesNotContain("https://www.testcontainers.org/modules/" + docHref); + assertHelpDocument("3.0.0", dependencyId).doesNotContain("https://java.testcontainers.org/modules/" + docHref); } static Stream supportedEntriesHelpDocument() { @@ -110,7 +110,7 @@ static Stream supportedEntriesHelpDocument() { @Test void linkToSupportedEntriesWhenTwoMatchesArePresentOnlyAddLinkOnce() { assertHelpDocument("3.0.0", "testcontainers", "data-mongodb", "data-mongodb-reactive") - .containsOnlyOnce("https://www.testcontainers.org/modules/databases/mongodb/"); + .containsOnlyOnce("https://java.testcontainers.org/modules/databases/mongodb/"); } @Test From 5069af784bfbf98c2fe0bdf6f3ec5310901ca557 Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Mon, 31 Jul 2023 12:22:35 +0200 Subject: [PATCH 2/2] Polish "Fix testcontainers module location in HELP.md" See gh-1263 --- start-site/src/main/resources/application.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/start-site/src/main/resources/application.yml b/start-site/src/main/resources/application.yml index baab7251290..f9f1655a7ab 100644 --- a/start-site/src/main/resources/application.yml +++ b/start-site/src/main/resources/application.yml @@ -1087,7 +1087,7 @@ initializr: bom: testcontainers links: - rel: reference - href: https://www.testcontainers.org/ + href: https://java.testcontainers.org/ - name: Contract Verifier bom: spring-cloud id: cloud-contract-verifier