forked from sdkman/sdkman-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjava_installation.feature
More file actions
58 lines (51 loc) · 2.86 KB
/
java_installation.feature
File metadata and controls
58 lines (51 loc) · 2.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
Feature: Java Multi Platform Binary Distribution
Three versions of Java are used to test various installation scenarios.
This feature uses real hooks found in the resources folder under /hooks.
The following hooks are available:
8.0.111: post-hook prepared for successful installation
8.0.101: post-hook aborts with non-zero return code
Background:
Given the internet is reachable
And an initialised environment
Scenario: Platform is supported and a specific version of compatible binary is installed
Given an "x86_64" machine with "Linux" installed
And the system is bootstrapped
And the candidate "java" version "8.0.111" is available for download on "Linux" with architecture "x86_64"
And the appropriate multi-platform hook is available for "java" version "8.0.111" on "Linux" with architecture "x86_64"
When I enter "sdk install java 8.0.111"
And I see "Done installing!"
And the candidate "java" version "8.0.111" is installed
Scenario: Platform is supported and a default version of compatible binary is installed
Given an "x86_64" machine with "Linux" installed
And the system is bootstrapped
And the default "java" version is "8.0.111"
And the candidate "java" version "8.0.111" is available for download on "Linux" with architecture "x86_64"
And the appropriate multi-platform hook is available for "java" version "8.0.111" on "Linux" with architecture "x86_64"
When I enter "sdk install java"
And I see "Done installing!"
And the candidate "java" version "8.0.111" is installed
Scenario: Platform is not supported for specific version and user is notified
And an "x86_64" machine with "Linux" installed
And the system is bootstrapped
And the candidate "java" version "8.0.111" is not available for download on "Linux"
When I enter "sdk install java 8.0.111"
Then I see "Stop! java 8.0.111 is not available. Possible causes:"
And I see " * 8.0.111 is an invalid version"
And I see " * java binaries are incompatible with your platform"
And I see " * java has not been released yet"
And I see "Tip: see all available versions for your platform:"
And I see "$ sdk list java"
And the candidate "java" version "8.0.111" is not installed
Scenario: Platform is not supported for default version and user is notified
And an "x86_64" machine with "Linux" installed
And the system is bootstrapped
And the default "java" version is "8.0.111"
And the candidate "java" version "8.0.111" is not available for download on "Linux"
When I enter "sdk install java"
Then I see "Stop! java 8.0.111 is not available. Possible causes:"
And I see " * 8.0.111 is an invalid version"
And I see " * java binaries are incompatible with your platform"
And I see " * java has not been released yet"
And I see "Tip: see all available versions for your platform:"
And I see "$ sdk list java"
And the candidate "java" version "8.0.111" is not installed