From 0d97a9481435d69a4795c073a6f028fa69a81272 Mon Sep 17 00:00:00 2001 From: Seth Hoenig Date: Wed, 24 Aug 2022 09:16:38 -0500 Subject: [PATCH] drivers/java: add parsing test case for corretto 17 --- drivers/java/utils_test.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/java/utils_test.go b/drivers/java/utils_test.go index f07acd4df..bdd0b1b97 100644 --- a/drivers/java/utils_test.go +++ b/drivers/java/utils_test.go @@ -78,6 +78,15 @@ func TestDriver_parseJavaVersionOutput(t *testing.T) { `OpenJDK Runtime Environment 18.9 (build 11.0.11+9-LTS)`, `OpenJDK 64-Bit Server VM 18.9 (build 11.0.11+9-LTS, mixed mode, sharing)`, }, + { + "Corretto 17 on Ubuntu 22.04", + `openjdk version "17.0.4.1" 2022-08-12 LTS + OpenJDK Runtime Environment Corretto-17.0.4.9.1 (build 17.0.4.1+9-LTS) + OpenJDK 64-Bit Server VM Corretto-17.0.4.9.1 (build 17.0.4.1+9-LTS, mixed mode, sharing)`, + `17.0.4.1`, + `OpenJDK Runtime Environment Corretto-17.0.4.9.1 (build 17.0.4.1+9-LTS)`, + `OpenJDK 64-Bit Server VM Corretto-17.0.4.9.1 (build 17.0.4.1+9-LTS, mixed mode, sharing)`, + }, } for _, c := range cases {