Skip to content

Commit ed20d42

Browse files
authored
Merge branch 'main' into main
2 parents 6223fca + 57e03d0 commit ed20d42

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

docs/test_framework_integration/external.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ The following Open Source frameworks add direct integration to Testcontainers
55
| Framework | Source Code | Documentation |
66
| --- | --- | --- |
77
| jqwik | [jqwik-testcontainers](https://github.com/jqwik-team/jqwik-testcontainers) | [README](https://github.com/jqwik-team/jqwik-testcontainers) |
8-
| Kotest | [Kotest Extensions Testcontainers](https://github.com/kotest/kotest-extensions-testcontainers) | [kotest.io](https://kotest.io/docs/extensions/test_containers.html) |
8+
| Kotest | [Kotest Extensions Testcontainers](https://github.com/kotest/kotest/tree/master/kotest-extensions/kotest-extensions-testcontainers) | [kotest.io](https://kotest.io/docs/extensions/test_containers.html) |
99
| Synthesized | [Synthesized TDK-Testcontainers integration](https://github.com/synthesized-io/tdk-tc) | [synthesized.io](https://docs.synthesized.io/tdk/latest/user_guide/integrations/testcontainers) |
1010
| TCI | [Testcontainers Infrastructure (TCI) Framework](https://github.com/xdev-software/tci-base) | [README](https://github.com/xdev-software/tci-base) |

modules/database-commons/src/main/java/org/testcontainers/ext/ScriptSplitter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ void split() {
3636
//skip
3737
break;
3838
case WHITESPACE:
39-
if (!sb.toString().endsWith(" ")) {
39+
if (sb.length() == 0 || sb.charAt(sb.length() - 1) != ' ') {
4040
sb.append(' ');
4141
}
4242
break;

modules/nginx/src/main/java/org/testcontainers/nginx/NginxContainer.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,8 @@ public NginxContainer(final DockerImageName dockerImageName) {
2727
public URL getBaseUrl(String scheme, int port) throws MalformedURLException {
2828
return new URL(scheme + "://" + getHost() + ":" + getMappedPort(port));
2929
}
30+
31+
public URL getBaseUrl(String scheme) throws MalformedURLException {
32+
return getBaseUrl(scheme, NGINX_DEFAULT_PORT);
33+
}
3034
}

0 commit comments

Comments
 (0)