Skip to content

Commit 5b8d0d3

Browse files
authored
Merge pull request #155 from aguibert/default-adapter-errmsg
Improve error message for when runtime-specific operations are attempted using the generic adapter
2 parents 1977c2e + 9d12fcf commit 5b8d0d3

File tree

1 file changed

+4
-2
lines changed
  • modules/testcontainers/src/main/java/org/microshed/testing/testcontainers/spi

1 file changed

+4
-2
lines changed

modules/testcontainers/src/main/java/org/microshed/testing/testcontainers/spi/ServerAdapter.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ default int getDefaultAppStartTimeout() {
7878
* @param properties A map of key/value pairs that should be set on the runtime
7979
*/
8080
default void setConfigProperties(Map<String, String> properties) {
81-
throw new UnsupportedOperationException("Dynamically setting config properties is not supported for the default ServerAdapter.");
81+
throw new UnsupportedOperationException("Dynamically setting config properties is not supported for the default (generic) ServerAdapter. " +
82+
"Try enabling the appropriate runtime-specific module documented here: https://microshed.org/microshed-testing/features/SupportedRuntimes.html");
8283
}
8384

8485
/**
@@ -90,7 +91,8 @@ default void setConfigProperties(Map<String, String> properties) {
9091
* @return The default docker image including the supplied appFile
9192
*/
9293
default ImageFromDockerfile getDefaultImage(File appFile) {
93-
throw new UnsupportedOperationException("Dynamically building image is not supported for the default ServerAdapter.");
94+
throw new UnsupportedOperationException("Dynamically building image is not supported for the default (generic) ServerAdapter. " +
95+
"Try enabling the appropriate runtime-specific module documented here: https://microshed.org/microshed-testing/features/SupportedRuntimes.html");
9496
}
9597

9698
/**

0 commit comments

Comments
 (0)