Skip to content

Commit

Permalink
Fix testcontainers site in documentation
Browse files Browse the repository at this point in the history
There is no breaking change because Testcontainers already redirects
from www.testcontainers.org to java.testcontainers.org.
  • Loading branch information
eddumelendez committed Jul 31, 2023
1 parent 4e7d3eb commit da56f81
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ private static Consumer<Build> addModule(String id) {

private static Consumer<HelpDocument> 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);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ static Stream<Arguments> 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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,13 @@ static Stream<Arguments> 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<Arguments> supportedEntriesHelpDocument() {
Expand All @@ -109,7 +109,7 @@ static Stream<Arguments> 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
Expand Down

0 comments on commit da56f81

Please sign in to comment.