Skip to content

Commit

Permalink
Fix testcontainers module location in HELP.md
Browse files Browse the repository at this point in the history
This commit applies the new location for Testcontainers module.

See gh-1263
  • Loading branch information
eddumelendez authored and snicoll committed Jul 31, 2023
1 parent e125f0d commit b8d9c6f
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 @@ -93,7 +93,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 @@ -77,13 +77,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 @@ -110,7 +110,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 b8d9c6f

Please sign in to comment.