From cea39cceee4863c246f8d9995e94ab4525f02ece Mon Sep 17 00:00:00 2001 From: Marco Vermeulen Date: Mon, 28 Nov 2016 13:30:57 +0000 Subject: [PATCH] Add scenario for default compatible java version. --- src/test/cucumber/java_installation.feature | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/test/cucumber/java_installation.feature b/src/test/cucumber/java_installation.feature index 1efd082d..f63f5fe0 100644 --- a/src/test/cucumber/java_installation.feature +++ b/src/test/cucumber/java_installation.feature @@ -15,7 +15,7 @@ Feature: Java Multi Platform Binary Distribution Given the internet is reachable And an initialised environment - Scenario: Platform is supported and a compatible binary is installed + Scenario: Platform is supported and a specific version of compatible binary is installed Given a machine with "Linux" installed And the system is bootstrapped And the candidate "java" version "8u111" is available for download on "Linux" @@ -27,6 +27,19 @@ Feature: Java Multi Platform Binary Distribution And the candidate "java" version "8u111" is installed And the cookie has been removed + Scenario: Platform is supported and a default version of compatible binary is installed + Given a machine with "Linux" installed + And the system is bootstrapped + And the default "java" version is "8u111" + And the candidate "java" version "8u111" is available for download on "Linux" + And a cookie is required for installing "java" "8u111" on "Linux" + And the appropriate multi-platform hooks are available for "java" version "8u111" on "Linux" + When I enter "sdk install java", accept the license agreement and confirm to make this the default installation + Then a download request was made for "java" "8u111" on "Linux" with cookie "oraclelicense=accept-securebackup-cookie" + And I see "Done installing!" + And the candidate "java" version "8u111" is installed + And the cookie has been removed + Scenario: Platform is supported but the User does not agree with the Oracle Binary Code License Agreement And a machine with "Linux" installed And the system is bootstrapped