aboutsummaryrefslogtreecommitdiff
path: root/test-scenarios/install_additional_java.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test-scenarios/install_additional_java.sh')
-rw-r--r--test-scenarios/install_additional_java.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/test-scenarios/install_additional_java.sh b/test-scenarios/install_additional_java.sh
new file mode 100644
index 0000000..a796fee
--- /dev/null
+++ b/test-scenarios/install_additional_java.sh
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+set -e
+
+# Optional: Import test library
+source dev-container-features-test-lib
+
+check "java version 17 installed as default" java --version | grep 17
+check "java version 11 installed" ls /usr/local/sdkman/candidates/java | grep 11
+check "java version 8 installed" ls /usr/local/sdkman/candidates/java | grep 8
+
+# Report result
+reportResults